Now labels with the CSS class crayons-btn that wrap inputs of type file have focus states (#15368)

This commit is contained in:
Nick Taylor 2021-11-15 11:12:01 -05:00 committed by GitHub
parent a0e15f7bd6
commit 9f998b470d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,9 @@
}
.js-focus-visible .crayons-btn.focus-visible:focus,
.js-focus-visible .crayons-btn.focus-visible:focus-within {
.js-focus-visible .crayons-btn.focus-visible:focus-within,
label[class*='crayons-btn']:focus-within // label for input[type="file"] made to look like a button as the browse... button can't be styled.
{
background-color: var(--bg-hover);
border-color: var(--border-hover);
box-shadow: var(--shadow-hover);