microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.28k stars 594 forks source link

docs: fix/add documentation for css.partial.createCSS on non-shadowed elements #7011

Open eljefe223 opened 3 months ago

eljefe223 commented 3 months ago

🙋 Documentation Request

The documentation seems to be lacking on css.partial. Especially when importing and applying a css.partial to a non-shadowed element.

💁 Possible Solution

The solution is:

const myPartial = css.partial`color: red`;

.my-class {
    myPartial.createCSS(() => {});
}