Skip to content

Commit

Permalink
Merge pull request #2037 from cfpb/ans_default_offset
Browse files Browse the repository at this point in the history
Adjust focus rectangle offset for default links, expandables, summaries
  • Loading branch information
anselmbradford authored Sep 6, 2024
2 parents 62179e8 + 3ed54e6 commit ae4a124
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/base/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cfpb-design-system/dist/base/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/base/index.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cfpb-design-system/dist/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/utilities/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cfpb-design-system/dist/utilities/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/utilities/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/cfpb-design-system/src/base/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ a {
&.focus {
border-style: solid;
outline: thin dotted;
outline-offset: 1px;
}

&:active,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

&:focus {
outline: 1px dotted var(--black);
outline-offset: 1px;
outline-offset: 2px;
}

.o-expandable__cue-close,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

&:focus {
outline: 1px dotted var(--pacific);
outline-offset: 2px;
outline-offset: 1px;
}

.o-summary-minimal__cue-close,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

&:focus {
outline: 1px dotted var(--pacific);
outline-offset: 2px;
outline-offset: 1px;
}

&[aria-expanded='false']::before {
Expand All @@ -42,7 +42,7 @@
right: 0;

// 4px is needed because the 2px movement of the content's bounding box.
top: calc(-100% + 4px);
top: calc(-100% + 2px);
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0%) 0%,
Expand Down

0 comments on commit ae4a124

Please sign in to comment.