Skip to content

Commit

Permalink
Merge pull request #13278 from rak-phillip/task/tertiary-button-focus
Browse files Browse the repository at this point in the history
Add focus ring to tertiary buttons
  • Loading branch information
rak-phillip authored Feb 5, 2025
2 parents 29e4b82 + 6b73c3f commit 5a83c03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions shell/assets/styles/base/_basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ TEXTAREA,
}
}

BUTTON,
.btn {
&:focus, &.focused {
outline: none;
box-shadow: 0 0 0 var(--outline-width) var(--outline);
background: var(--primary-hover-bg);
}
}
A {
@include link-color(var(--link), var(--body-text));

Expand Down
5 changes: 5 additions & 0 deletions shell/assets/styles/global/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ button,
&.btn:not(.btn-sm) {
line-height: $btn-height - 2px;
}

&:focus-visible {
@include focus-outline;
outline-offset: 2px;
}
}

.role-link {
Expand Down

0 comments on commit 5a83c03

Please sign in to comment.