Skip to content

Commit

Permalink
Merge pull request #2444 from SpareBank1/fix-modal-close-button-focus…
Browse files Browse the repository at this point in the history
…-firefox

fix(ffe-modals): Add missing focus color for close button - firefox
  • Loading branch information
pethel authored Dec 13, 2024
2 parents 900811a + c87e4f9 commit ff7e9ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/ffe-modals/less/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@
--background-color: var(--ffe-v-modal-bg-color);
--border-color: var(--ffe-v-modal-close-button-border-color);
--text-color: var(--ffe-v-modal-close-button-cross-color);
--outline-color: transparent;

aspect-ratio: 1;
background: var(--background-color);
color: var(--text-color);
border: 2px solid var(--border-color);
font: inherit;
cursor: pointer;
outline: 2px solid var(--outline-color);
outline: 2px solid transparent;
padding: var(--ffe-spacing-2xs);
border-radius: 50%;
float: right;
Expand All @@ -71,7 +70,7 @@
}

&:focus-visible {
--outline-color: var(--ffe-v-modal-close-button-color);
outline: 2px solid var(--ffe-v-modal-close-button-color);
}

@media (hover: hover) and (pointer: fine) {
Expand Down

0 comments on commit ff7e9ec

Please sign in to comment.