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(content-item-row): add shadow parts #11813

Conversation

Valentin-Sorin-Nicolae
Copy link
Contributor

ADCMS-5063

Description

All non-slot elements in the shadow DOM should be given a unique "part" name allowing CSS to target and override component default styles. This is for the "content-item-row" component.

Changelog

New

Adding the shadow parts for the "content-item-row" component

@Valentin-Sorin-Nicolae Valentin-Sorin-Nicolae requested a review from a team as a code owner May 22, 2024 13:40
@Valentin-Sorin-Nicolae Valentin-Sorin-Nicolae requested review from kennylam and emyarod and removed request for a team May 22, 2024 13:40
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented May 22, 2024

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented May 22, 2024

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented May 22, 2024

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented May 22, 2024

@andy-blum andy-blum requested review from m4olivei, bruno-amorim, jkaeser and marcelojcs and removed request for kennylam and emyarod May 23, 2024 14:13
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.

Interested to get @jkaeser / @andy-blum 's take on my suggested changes here.

Valentin-Sorin-Nicolae and others added 9 commits May 27, 2024 15:50
…t-item-row-media-featured.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media-featured.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media-featured.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media-featured.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
…t-item-row-media.ts

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>
@jkaeser
Copy link
Member

jkaeser commented May 28, 2024

Just need to fix the ci-check errors. I think you'll need to:

  1. run the formatting script – yarn format from the project root
  2. generate updated unit test snapshots – yarn test:unit:updateSnapshot from the web component package root

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.

Just noticed that Prettier isn't happy with the changes here. See the job output: https://github.com/carbon-design-system/carbon-for-ibm-dotcom/actions/runs/9271220474/job/25506076670?pr=11813

I'll quick push a commit to fix. However, @Valentin-Sorin-Nicolae , be sure to configure your editor to use Prettier. I believe you use VSCode, @jkaeser and @andy-blum both do as well, so they could help you with setting it up it you need.

@m4olivei
Copy link
Contributor

Haha! @jkaeser and I are both here at the same time :). I just fixed prettier / formatting. Snapshots are all that's left then.

@m4olivei m4olivei merged commit 1ea133b into carbon-design-system:feat/v2-shadow-parts May 28, 2024
12 of 20 checks passed
@Valentin-Sorin-Nicolae Valentin-Sorin-Nicolae deleted the content-item-row-shadow-part branch June 18, 2024 09:27
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.

4 participants