Skip to content

Commit 4a8c042

Browse files
committed
remove hasLargeFocusOffset
1 parent d9560a5 commit 4a8c042

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/internal/components/expand-toggle-button/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ export function ExpandToggleButton({
1515
expandButtonLabel,
1616
collapseButtonLabel,
1717
customIcon,
18-
hasLargeFocusOffset,
1918
}: {
2019
isExpanded?: boolean;
2120
onExpandableItemToggle?: () => void;
2221
expandButtonLabel?: string;
2322
collapseButtonLabel?: string;
2423
customIcon?: React.ReactNode;
25-
hasLargeFocusOffset?: boolean;
2624
}) {
2725
const buttonRef = useRef<HTMLButtonElement>(null);
2826
const { tabIndex } = useSingleTabStopNavigation(buttonRef);
@@ -33,7 +31,7 @@ export function ExpandToggleButton({
3331
tabIndex={tabIndex}
3432
aria-label={isExpanded ? collapseButtonLabel : expandButtonLabel}
3533
aria-expanded={isExpanded}
36-
className={clsx(styles['expand-toggle'], hasLargeFocusOffset && styles['focus-offset-large'])}
34+
className={styles['expand-toggle']}
3735
onClick={onExpandableItemToggle}
3836
>
3937
{customIcon ?? (

src/internal/components/expand-toggle-button/styles.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@
4141
color: awsui.$color-text-interactive-default;
4242

4343
@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);
5145
}
5246

5347
&:hover {

src/tree-view/tree-item/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const InternalTreeItem = <T,>({
7575
<ExpandToggleButton
7676
isExpanded={isExpanded}
7777
customIcon={customIcon}
78-
hasLargeFocusOffset={true}
7978
expandButtonLabel={joinStrings(
8079
i18n('i18nStrings.expandButtonLabel', i18nStrings?.expandButtonLabel?.(item)),
8180
itemLabelToAnnounce

0 commit comments

Comments
 (0)