Dialogs, a11y · Dialog card names its role, title and detail; prompt error reads as a label; Cancel and Close read i18n; a disabled button says so in its description
This commit is contained in:
1 parent
4580e3b075
commit
70162a7dbe
6 files changed
+39
-11
No files matched your search
@@ -10,6 +10,7 @@ use super::TabOverflowMenu;
|
||||
use crate::{
|
||||
buttons::{ButtonVariant, IconButton},
|
||||
forms::Choice,
|
||||
i18n,
|
||||
primitives::{DragGhost, Icon, IconName},
|
||||
theme::{ActiveTheme, ControlSize, IconSize, TextSize},
|
||||
};
|
||||
@@ -206,7 +207,7 @@ impl RenderOnce for EditorTabs {
|
||||
IconButton::new(("close", ix), IconName::X)
|
||||
.size(ControlSize::Sm)
|
||||
.variant(ButtonVariant::Ghost)
|
||||
.tooltip("Close")
|
||||
.tooltip(i18n::text(cx, "dialog.close", &[]))
|
||||
.on_click(move |_, window, cx| {
|
||||
cx.stop_propagation();
|
||||
run(&close, "close", &slot_id, window, cx);
|
||||
|
||||
Reference in new issue
Block a user