Skip to content

Investigate removal of the hard CSS reset #1202

@GauBen

Description

@GauBen

Context

Root investigation ticket

Since 2bc53db (2019), Moonstone contains a hard reset:

/* Something similar to this */
* {
    margin: 0;
    padding: 0;
}

This is fine most of the time but it may collide with user styles in context such as the editframe:

Image

(Screenshot of Luxe that shows a mix of Luxe styles and Moonstone components)

jContent contains a workaround: all injected styles are scoped on the fly by a very expensive function (it takes a few seconds on a mac M4 to scope all moonstone).

The goal of the spike is to remove this hard reset from Moonstone and see what breaks.

On a similar note, all Moonstone styles should be scoped, using whatever CSS-in-JS is trendy right now instead of using global classes

Outcomes

  • A PR and follow up tickets if things are broken

Notes

Useful information (Technical, Design)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions