Skip to content

Commit

Permalink
only show focus rings when :focus-visible (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq authored Feb 21, 2024
1 parent 23f2b85 commit 8cb30d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ const csvExportFilename = computed(() => {
.audit-name:focus {
outline: none;
}
.audit-name:focus::before {
outline: 2px solid #0a76f6;
.audit-name:focus-visible::before {
outline: 2px solid var(--dsfr-outline);
}
.audit-name::before {
Expand Down
2 changes: 1 addition & 1 deletion confiture-web-app/src/components/audit/AraTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ li {
background-color: var(--active-tint);
}

.tabs button:focus {
.tabs button:focus-visible {
outline: 2px solid var(--dsfr-outline);
outline-offset: -2px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ const notApplicableCount = computed(
margin-bottom: 2rem;
}
.toggle-column-button:focus {
outline: 2px solid #0a76f6;
.toggle-column-button:focus-visible {
outline: 2px solid var(--dsfr-outline);
outline-offset: -2px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const isOffline = useIsOffline();
.upload-label {
cursor: pointer;
outline-color: #0a76f6;
outline-color: var(--dsfr-outline);
outline-offset: 2px;
outline-width: 2px;
outline-style: none;
Expand Down

0 comments on commit 8cb30d9

Please sign in to comment.