fix: issue with focus states in safari, fixed multiple focus states accross the application
Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -22,6 +22,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.link:focus-visible {
|
.link:focus-visible {
|
||||||
outline: 2px auto var(--Border-Interactive-Focus);
|
outline: 2px solid var(--Border-Interactive-Focus);
|
||||||
outline-offset: -4px;
|
outline-offset: -4px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,10 +17,6 @@
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item:focus-visible {
|
|
||||||
outline: 2px auto var(--Border-Interactive-Focus);
|
|
||||||
outline-offset: 1px;
|
|
||||||
}
|
|
||||||
.buttonWrapper {
|
.buttonWrapper {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
|||||||
@@ -10,11 +10,6 @@
|
|||||||
border-width: 0;
|
border-width: 0;
|
||||||
padding: var(--Space-x05) 0;
|
padding: var(--Space-x05) 0;
|
||||||
|
|
||||||
&:focus-visible {
|
|
||||||
outline: 2px auto var(--Border-Interactive-Focus);
|
|
||||||
outline-offset: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.loading {
|
&.loading {
|
||||||
cursor: progress;
|
cursor: progress;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,11 +12,6 @@
|
|||||||
background-color: var(--Surface-Primary-Hover);
|
background-color: var(--Surface-Primary-Hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
|
||||||
outline: 2px auto var(--Border-Interactive-Focus);
|
|
||||||
outline-offset: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(:hover) .arrowIcon {
|
&:not(:hover) .arrowIcon {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.radio[data-focus-visible]::before {
|
.radio[data-focus-visible]::before {
|
||||||
outline: 1px auto var(--Border-Interactive-Focus);
|
outline: 1px solid var(--Border-Interactive-Focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio {
|
.radio {
|
||||||
|
|||||||
@@ -61,10 +61,3 @@
|
|||||||
.medium {
|
.medium {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Default:focus,
|
|
||||||
.Outlined:focus,
|
|
||||||
.FilterRounded:focus {
|
|
||||||
outline-offset: 4px;
|
|
||||||
outline-color: var(--Border-Interactive-Focus);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -47,6 +47,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
|
display: block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0px;
|
||||||
|
border: 2px solid var(--Border-Interactive-Focus);
|
||||||
|
border-radius: var(--Corner-Radius-md);
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
packages/design-system/lib/normalize.css
vendored
2
packages/design-system/lib/normalize.css
vendored
@@ -21,7 +21,7 @@ ul {
|
|||||||
}
|
}
|
||||||
|
|
||||||
*:focus-visible {
|
*:focus-visible {
|
||||||
outline-color: var(--Border-Interactive-Focus);
|
outline: 2px solid var(--Border-Interactive-Focus);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -228,8 +228,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material-symbols/svg-400": "0.40.2",
|
"@material-symbols/svg-400": "0.40.2",
|
||||||
"@scandic-hotels/common": "workspace:*",
|
"@scandic-hotels/common": "workspace:*",
|
||||||
"sonner": "^2.0.3",
|
"class-variance-authority": "^0.7.1",
|
||||||
"class-variance-authority": "^0.7.1"
|
"sonner": "^2.0.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@babel/core": "^7.27.4",
|
"@babel/core": "^7.27.4",
|
||||||
|
|||||||
Reference in New Issue
Block a user