microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

Support for ::part CSS pseudo-element

Open mohamedcherifmo opened this issue 2 years ago • 3 comments

Proposal: Support for ::part CSS pseudo-element

Description

Since the support for ::part css is now widely adopted why not support it to give more flexibility in styling mgt components

Rationale

A lot of web component libraries provide the ability to customise through CSS vars as well as through parts, take shoelace example below: https://shoelace.style/getting-started/customizing Given the details within mgttoolkit it would be great to provide the same flexibility

mohamedcherifmo avatar Mar 13 '23 22:03 mohamedcherifmo

Hello mohamedcherifmo, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Mar 13 '23 22:03 ghost

YES! It's definitely something we'll be looking into providing as we take on a bigger efforts around theming. Do you have good examples of libraries using a similar approach to styling web components?

sebastienlevert avatar Mar 16 '23 00:03 sebastienlevert

100% agree that we should start exporting parts to enable richer styling scenarios.

Do you have suggestions as to what parts you'd like to see exported for various components? This is an area where community feedback would be really helpful. We can make educated assumptions, but hearing from folks who are using these components to compose real world applications is invaluable in ensuring we deliver things that are actually useful to you all.

gavinbarron avatar Mar 21 '23 17:03 gavinbarron