Skip to content

Commit

Permalink
Fix tab and segmented toggle focus states (#8592)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLichtenstein authored Nov 21, 2023
1 parent 98e076b commit 141e8fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions nebula/ui/components/MZSegmentedToggle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,6 @@ Rectangle {

Accessible.name: (root.selectedIndex === index ? MZI18n.AccessibilitySelectedAndItemName.arg(MZI18n[segmentLabelStringId]) : MZI18n[segmentLabelStringId]) + MZI18n.AccessibilityCurrentIndexFocusedOfTotalItemsInGroup.arg(index + 1).arg(options.count)

Rectangle {
anchors.fill: parent
border.width: MZTheme.theme.focusBorderWidth
border.color: MZTheme.theme.fontColor
color: MZTheme.theme.transparent
visible: parent.focus
radius: root.radius
}

onFocusChanged: {
if(!root.anySegmentFocused()) root.focusedViaClick = false
}
Expand Down
10 changes: 0 additions & 10 deletions nebula/ui/components/MZTabNavigation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@ Item {
// Accessibility provided by btn's Accessible properties
Accessible.ignored: true

Rectangle {
anchors.fill: parent
anchors.margins: 2
border.width: MZTheme.theme.focusBorderWidth
border.color: MZTheme.theme.fontColor
color: MZTheme.theme.transparent
visible: btn.activeFocus
radius: 4
}

Behavior on color {
PropertyAnimation {
duration: 100
Expand Down

0 comments on commit 141e8fd

Please sign in to comment.