Remove tab title label from the accessibility tree

This commit is contained in:
Arnold Loubriat 2025-01-02 18:32:02 +01:00 committed by Simon Hausmann
parent a25a17ea29
commit c3cfa6044a
6 changed files with 81 additions and 2 deletions

View file

@ -128,6 +128,7 @@ export component TabImpl inherits Rectangle {
font-size: CosmicFontSettings.body.font-size;
font-weight: root.is-current ? CosmicFontSettings.body-strong.font-weight : CosmicFontSettings.body.font-weight;
color: root.is-current ? CosmicPalette.accent-background : CosmicPalette.control-foreground;
accessible-role: none;
}
}
}

View file

@ -94,6 +94,7 @@ export component TabImpl inherits Rectangle {
font-size: CupertinoFontSettings.body-strong.font-size;
font-weight: CupertinoFontSettings.body-strong.font-weight;
color: CupertinoPalette.foreground;
accessible-role: none;
}
}
}

View file

@ -85,6 +85,7 @@ export component TabImpl inherits Rectangle {
font-size: root.is-current ? FluentFontSettings.body-strong.font-size : FluentFontSettings.body.font-size;
font-weight: root.is-current ? FluentFontSettings.body-strong.font-weight : FluentFontSettings.body.font-weight;
color: root.is-current ? FluentPalette.control-foreground : FluentPalette.text-secondary;
accessible-role: none;
}
}

View file

@ -76,6 +76,7 @@ export component TabImpl inherits Rectangle {
//font-family: MaterialFontSettings.title-small.font;
font-size: MaterialFontSettings.title-small.font-size;
font-weight: MaterialFontSettings.title-small.font-weight;
accessible-role: none;
animate color {
duration: 250ms;