fix: preserve Related Stories focus on hover
This commit is contained in:
2 files changed
+57
-3
No files matched your search
@@ -44,7 +44,7 @@ html[data-theme="light"] .chrnx-related-posts {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.chrnx-related-card:focus-within {
|
||||
.chrnx-related-posts .chrnx-related-card:focus-within {
|
||||
box-shadow: inset 0 0 0 3px var(--chrnx-related-focus-ring);
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ html[data-theme="light"] .chrnx-related-posts {
|
||||
|
||||
@media (hover: hover) {
|
||||
|
||||
.chrnx-related-posts.is-layout-carousel .chrnx-related-card:hover {
|
||||
.chrnx-related-posts.is-layout-carousel .chrnx-related-card:hover:not(:focus-within) {
|
||||
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chrnx-green) 62%, transparent);
|
||||
transform: none;
|
||||
}
|
||||
@@ -147,7 +147,7 @@ html[data-theme="light"] .chrnx-related-posts {
|
||||
|
||||
@media (hover: hover) {
|
||||
|
||||
.chrnx-related-posts.is-layout-adaptive .chrnx-related-card:hover {
|
||||
.chrnx-related-posts.is-layout-adaptive .chrnx-related-card:hover:not(:focus-within) {
|
||||
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chrnx-green) 62%, transparent);
|
||||
transform: none;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user