-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix file input button shadow #2275
Conversation
correct variablePreview: documentation | landing | table |
I messed up the first commit, but funny thing: it works with |
remove extra line in variable declarationPreview: documentation | landing | table |
inset 0 1px 2px rgba($black, 0.2) !default; | ||
$dark-button-intent-box-shadow: 0 0 0 $button-border-width rgba($black, 0.4) !default; | ||
$dark-button-intent-box-shadow-active: 0 0 0 $button-border-width rgba($black, 0.4), | ||
inset 0 1px 2px rgba($black, 0.2) !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert these whitespace changes please, the previous syntax was more legible.
add box shadow in a different selectorPreview: documentation | landing | table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay this worked!
// it doesn't render correct via the `pt-button` mixin | ||
// stylelint-disable-next-line | ||
.pt-file-upload-input::after { box-shadow: $button-box-shadow; } | ||
// stylelint-enable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need this since you're using -next-line
(automatic re-enable)
like shooting a target with eyes closed. can't believe this worked haha |
remove unnecessary stylelint enable linePreview: documentation | landing | table |
That shadow actually works fine locally without this change, but not on the docs website (the
::after
has nobox-shadow
rule). This PR explicitly adds abox-shadow
rule to the::after
without relying on the mixin