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

feat(masthead): adding shadow parts #11881

Merged
merged 9 commits into from
Jul 9, 2024

Conversation

bruno-amorim
Copy link
Contributor

Related Ticket(s)

ADCMS-5170

Description

Adding shadow parts to the Masthead component so it can be styles outside of the Shadow Tree.
Snapshots updated.

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Jun 20, 2024

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Jun 20, 2024

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Jun 20, 2024

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Jun 20, 2024

Copy link
Member

@jkaeser jkaeser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember, given the way these will be used we don't need to prefix each part name with the component name. E.g.

/* Redundant */
c4d-left-nav-menu-category-heading::part(left-nav-menu-category-h2) { ... }

/* Not redundant */
c4d-left-nav-menu-category-heading::part(heading) { ... }

I'd also encourage you to take a look at the markup as rendered in the browser to get a better idea of how all these pieces are actually used. While looking at class names for hints is good, they don't always necessarily match how the element is actually used. See my comment on <c4d-left-nav-menu-section>'s back button for an example of what I mean.

It looks like all of these part names can be simplified. I left some notes for how I might go about doing that for some components. Can you do another round trying to match that approach? Thanks!

@bruno-amorim
Copy link
Contributor Author

Hey guys @andy-blum @Valentin-Sorin-Nicolae @marcelojcs @m4olivei

I have addressed the comments from John, can you please check it now? I have just simplified the naming convention for all the shadow parts.

Thank you!!

Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few things found. Overall nice work. Almost there!

@m4olivei m4olivei requested review from jkaeser and removed request for ariellalgilmore, IgnacioBecerra and jkaeser July 5, 2024 13:52
Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits. Will commit.

Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry found a couple more.

@m4olivei m4olivei merged commit e90d124 into feat/v2-shadow-parts Jul 9, 2024
17 of 32 checks passed
@m4olivei m4olivei deleted the feat/masthead-shadow-parts branch July 9, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants