-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Style revisions for Experimental Navigation Component #26338
Conversation
… individual items (WordPress#26336) The designs have been updated, along with a few revisions that need to be added from wc-admin.
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.
Changes here look great, Joel! Tested in Storybook and npm link
'd to test this in WooCommerce Admin where this is being consumed and things look good.
One other small change we can probably add here- looks like the item title has a font-size of 13px in the designs. Pre-approving pending that extra addition.
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.
Thanks @joelclimbsthings ! This is all looking good to me, but I'm pausing on the height overwrite despite the design saying otherwise because I'm pretty sure we want to use the components as they come as a general rule. @jameskoster to confirm.
…n-height to account for long labels.
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.
Thanks for weighing in @jameskoster. With that, this LGMT
b5639ff
to
1b28839
Compare
cc @Copons to look this over because it changes button heights for everyone. |
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.
LGTM!
@joelclimbsthings thanks for looking into this!
There's currently a conflict with a recent change introducing RTL support to the component.
I think the ItemTitleUI
should become something like this:
export const ItemTitleUI = styled( Text )`
${ ( props ) => ( props.isRTL ? 'margin-left: auto;' : 'margin-right: auto;' ) }
font-size: 13px;
`;
(I don't think we need the text-align
at all 🤔 )
Thanks much @Copons . |
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.
LGTM! ✨
Nice job adding the new story, and updating the styles!
Congratulations on your first merged pull request, @joelclimbsthings! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts: https://profiles.wordpress.org/me/profile/edit/ And if you don't have a WordPress.org account, you can create one on this page: https://login.wordpress.org/register Kudos! |
Fixes #26336
The design for the navigation component has been updated to require a few minor CSS updates; including:
Description
Only some minor CSS additions in
navigation-styles.scss
that only impact the experimental navigation component. Also added new Story to better illustrate changes.How has this been tested?
Groups
Story)Screenshots
Before:
After:
Types of changes
Bug fix, updating to align with newer designs for experimental navigation components
Test Instructions:
npm run storybook:dev
Groups
story, and shorter itemswc-admin
, usenpm link
to bring in updated@wordpress/components
Checklist: