Add focus styles for template card
[MAILPOET-4676]
This commit is contained in:
@@ -37,16 +37,21 @@
|
|||||||
grid-template-rows: auto 1fr;
|
grid-template-rows: auto 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
background: #fff;
|
&:focus {
|
||||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.15);
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
// add focus ring in :after pseudo-element to cover badge edge
|
||||||
border-color: #2271b1;
|
&:focus:after {
|
||||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
|
border-radius: inherit;
|
||||||
color: inherit;
|
content: '';
|
||||||
|
inset: 0;
|
||||||
|
outline: var(--wp-admin-border-width-focus) solid
|
||||||
|
var(--wp-admin-theme-color);
|
||||||
|
pointer-events: none;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user