[discussion]: Should we prefix ::part names for components? #6705
alionazherdetska
started this conversation in
Polls
Replies: 2 comments 2 replies
-
|
I've voted for using a prefix because I see the potential for conflicts when using third party libraries when they are using generic parts styles like |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I voted for simple part names after checking several other web component design systems, none of which are using prefixed parts: Also, I personally think it aligns better with other pseudo-elements.
This would then be the same for our parts:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In a discussion with @oliverschuerch, the question about prefixes for parts arose.
Probem:
If un-scoped parts are being used, e.g.
::part(button), it's way simpler to write and multiple button parts can be targeted at the same time, but we're risking that a global style for another button part is interfering with our own parts.Currently, we're using parts on some web components with generic names. Re-naming them would be breaking changes.
Affected components:
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions