ui: Update primary button with better 3d look#465
Open
juliaogris wants to merge 3 commits intomainfrom
Open
Conversation
9e2c331 to
74c9443
Compare
Update primary button with better 3d look and animation, according to Josh Comeau post. Demonstrate pushable button in the standalone frontend/css/pushable.html. Josh uses separate `<spans>` for button front (top), edge and shadow to achieve good i.e. non-janky performance results for the animations using a simple `translateY` on all of these elements rather than animating box-shadow and border-width. I didn't question this too much and followed his instructions slightly tweaking things to get them closer to the Evy look. This makes for slightly more awkward HTML unfortunately though. Maybe once I work out how web-components work I can fold all of this into an <evy-button> or so. This rework was also tricky because Evy's HTML/CSS is reused in many places - the learn, docs, labs subdomains. There is a pretty good chance I've missed things, but I have checked the snapshot updates in a follow-up commit carefully and grepped for "primary" as the new pushable button style replaces the primary button style. Commit-Group: 1/3
Re-generate static HTML files on learn and docs subdomains from templates
updated in previous commit with:
make learn docs
Commit-group: 2/3
Gen-command: make learn docs
Update end-to-end snapshot test golden files for new new 3d button look with: make snaps USE_DOCKER=1 Commit-group: 3/3 Gen-command: make snaps USE_DOCKER=1
74c9443 to
b817f05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update primary button with better 3d look and animation, according to Josh
Comeau post.
Demonstrate pushable button in the standalone frontend/css/pushable.html.
Josh uses separate
<spans>for button front (top), edge and shadow to achievegood i.e. non-janky performance results for the animations using a simple
translateYon all of these elements rather than animating box-shadow andborder-width. I didn't question this too much and followed his instructions
slightly tweaking things to get them closer to the Evy look. This makes for
slightly more awkward HTML unfortunately though. Maybe once I work out how
web-components work I can fold all of this into an or so.
This rework was also tricky because Evy's HTML/CSS is reused in many places -
the learn, docs, labs subdomains. There is a pretty good chance I've missed
things, but I have checked the snapshot updates in a follow-up commit carefully
and grepped for "primary" as the new pushable button style replaces the primary
button style.
This PR is broken up into 3-part commit-group, with the last 2 commits regenerating
snapshots and static HTML from templates.
For a review of this PR it might be good to click around the PR deployment and see if
things look and behave still ok.
See https://www.joshwcomeau.com/animation/3d-button/