File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed
internal/components/expand-toggle-button Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,12 @@ export function ExpandToggleButton({
15
15
expandButtonLabel,
16
16
collapseButtonLabel,
17
17
customIcon,
18
- hasLargeFocusOffset,
19
18
} : {
20
19
isExpanded ?: boolean ;
21
20
onExpandableItemToggle ?: ( ) => void ;
22
21
expandButtonLabel ?: string ;
23
22
collapseButtonLabel ?: string ;
24
23
customIcon ?: React . ReactNode ;
25
- hasLargeFocusOffset ?: boolean ;
26
24
} ) {
27
25
const buttonRef = useRef < HTMLButtonElement > ( null ) ;
28
26
const { tabIndex } = useSingleTabStopNavigation ( buttonRef ) ;
@@ -33,7 +31,7 @@ export function ExpandToggleButton({
33
31
tabIndex = { tabIndex }
34
32
aria-label = { isExpanded ? collapseButtonLabel : expandButtonLabel }
35
33
aria-expanded = { isExpanded }
36
- className = { clsx ( styles [ 'expand-toggle' ] , hasLargeFocusOffset && styles [ 'focus-offset-large' ] ) }
34
+ className = { styles [ 'expand-toggle' ] }
37
35
onClick = { onExpandableItemToggle }
38
36
>
39
37
{ customIcon ?? (
Original file line number Diff line number Diff line change 41
41
color : awsui .$color-text-interactive-default ;
42
42
43
43
@include focus-visible .when-visible {
44
- @include styles .focus-highlight (awsui .$space-button-inline-icon-focus-outline-gutter );
45
- }
46
-
47
- & .focus-offset-large {
48
- @include focus-visible .when-visible {
49
- @include styles .focus-highlight (awsui .$space-button-focus-outline-gutter );
50
- }
44
+ @include styles .focus-highlight (awsui .$space-button-focus-outline-gutter );
51
45
}
52
46
53
47
& :hover {
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ const InternalTreeItem = <T,>({
75
75
< ExpandToggleButton
76
76
isExpanded = { isExpanded }
77
77
customIcon = { customIcon }
78
- hasLargeFocusOffset = { true }
79
78
expandButtonLabel = { joinStrings (
80
79
i18n ( 'i18nStrings.expandButtonLabel' , i18nStrings ?. expandButtonLabel ?.( item ) ) ,
81
80
itemLabelToAnnounce
You can’t perform that action at this time.
0 commit comments