-
Notifications
You must be signed in to change notification settings - Fork 2k
Fixing duplicate override and using global overrides on Button for Domain Transfer and Link in Bio #79851
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
Conversation
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~40 bytes added 📈 [gzipped]) DetailsSections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
|
I see the button primary color appears as Line 163: I'm checking if we can remove this and instead rely on the |
Good catch @agrullon95! Since I'm adding it to the body, it seems safe to remove it from there. Will do more tests here to ensure that's the case. |
|
@paulopmt1 - I noticed another difference in the newsletter/LIB flow "disabled" button styling vs production. Before (production): After: I think we should update the button text color to match production (#fff) for all buttons ( at least in stepper for now). This can be set in |
Thanks for catching this one as well! This happens because the font color expects a gray background for the
How do you see it @nuriapenya? |
|
Hey @agrullon95, for this iteration, I added back some overriding so we can deliver an improvement while getting a new design view about it. So it's ready for a new review. |
lsl
left a comment
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.
This is what I was after thanks! There are a few minor things we should fix but I'll try to split these concerns off into another PR today so we can ship the main things asap.
|
@paulopmt1 , @lsl as shared on Slack, I would do the following:
Correct styles: |
Sounds good
We use disabled states sometimes while waiting for network requests to complete. Might need to keep the disabled blue around for those use cases while also moving to using error messages more consistently. Issue for this here: https://github.com/Automattic/dotcom-forge/issues/3205 not sure when if/we'll be able to prioritize it but it sounds like a good improvement. |
…ides.scss Co-authored-by: Louis Laugesen <louis.laugesen@gmail.com>
Co-authored-by: Louis Laugesen <louis.laugesen@gmail.com>
agrullon95
left a comment
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.
Confirmed the enabled/disabled state styling for buttons in newsletter, link-in-bio, and domain-transfer flows are matching and displaying correctly.
|
Amazing, everything looks great 💎 thanks everyone! |





Follow-up to #79692 and #79708
Implementing Louis' suggestion that deal with the root cause: avoids an override of an override by removing
@wordpress/components/build-style/stylefromclient/landing/stepper/declarative-flow/internals/global.scssMore context: p1689919222911329-slack-C05CT832K2T
20230726133833876.mp4
Proposed Changes
@wordpress/components/build-style/stylefromclient/landing/stepper/declarative-flow/internals/global.scssTesting Instructions
Go to /setup/domain-transfer.
disabledattribute to see it)Go to /setup/link-in-bio.
Go to /setup/newsletter/newsletterSetup.
Pre-merge Checklist