Skip to content
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

Merged
merged 6 commits into from
Mar 19, 2018
Merged

Fix file input button shadow #2275

merged 6 commits into from
Mar 19, 2018

Conversation

llorca
Copy link
Contributor

@llorca llorca commented Mar 19, 2018

That shadow actually works fine locally without this change, but not on the docs website (the ::after has no box-shadow rule). This PR explicitly adds a box-shadow rule to the ::after without relying on the mixin

@blueprint-bot
Copy link

correct variable

Preview: documentation | landing | table

@llorca
Copy link
Contributor Author

llorca commented Mar 19, 2018

I messed up the first commit, but funny thing: it works with $pt-input-box-shadow but not $button-box-shadow

@blueprint-bot
Copy link

remove extra line in variable declaration

Preview: 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;
Copy link
Contributor

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.

@blueprint-bot
Copy link

add box shadow in a different selector

Preview: documentation | landing | table

Copy link
Contributor

@giladgray giladgray left a 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
Copy link
Contributor

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)

@llorca llorca changed the title Attempt to fix file input button shadow Fix file input button shadow Mar 19, 2018
@llorca
Copy link
Contributor Author

llorca commented Mar 19, 2018

like shooting a target with eyes closed. can't believe this worked haha

@blueprint-bot
Copy link

remove unnecessary stylelint enable line

Preview: documentation | landing | table

@giladgray giladgray merged commit bd79f40 into develop Mar 19, 2018
@giladgray giladgray deleted the al/file-input-shadow branch March 19, 2018 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants