CI: fmt the narrow-layout commits, and Theme::hairline in place of their raw px
This commit is contained in:
1 parent
694cccbc81
commit
cb5e35f7cb
8 files changed
+69
-21
No files matched your search
+3
-1
@@ -129,7 +129,9 @@ impl RenderOnce for Switch {
|
||||
.id(self.id)
|
||||
.role(Role::Switch)
|
||||
.aria_toggled(self.on.into())
|
||||
.when_some(self.label.clone().or(self.name), |row, label| row.aria_label(label))
|
||||
.when_some(self.label.clone().or(self.name), |row, label| {
|
||||
row.aria_label(label)
|
||||
})
|
||||
.when(self.disabled, |row| {
|
||||
row.aria_description(i18n::text(cx, "state.unavailable", &[]))
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user