We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe93e8 commit ce33451Copy full SHA for ce33451
packages/components/src/styles/patterns/button.ts
@@ -552,6 +552,15 @@ export const StealthButtonStyles = css`
552
:host([appearance='stealth']) .control:${focusVisible} {
553
outline-color: ${accentFillFocus};
554
}
555
+
556
+ /* Make the focus outline displayed within the button if
557
+ it is in a start or end slot; e.g. in a tree item
558
+ This will make the focus outline bounded within the container.
559
+ */
560
+ :host([appearance='stealth'][slot="end"]) .control:${focusVisible},
561
+ :host([appearance='stealth'][slot="start"]) .control:${focusVisible} {
562
+ outline-offset: -2px;
563
+ }
564
`.withBehaviors(
565
forcedColorsStylesheetBehavior(css`
566
:host([appearance='stealth']),
0 commit comments