|
| 1 | +/* |
| 2 | +Styles for `outline-core-accordion.css` |
| 3 | +
|
| 4 | +=== REMOVE BELOW THIS LINE (AFTER READING) === |
| 5 | +@todo: Extrapolate these comments/documentation to a more official location |
| 6 | +Add any component level, structural CSS for the `COMPONENT-NAME` component. |
| 7 | +This would be CSS that is targeted to this component only, |
| 8 | +and is dependent on the HTML structure of the component that |
| 9 | +is encapsulated in the component's Shadow DOM. |
| 10 | +--- |
| 11 | +Shoud the need arise to style the component based on slotted content |
| 12 | +with an unknown markup structure provided by the consuming application |
| 13 | +in the Light DOM via slots provided by the component, |
| 14 | +consider the following best practices: |
| 15 | +
|
| 16 | +The root element of a `slot` should either be |
| 17 | +- Semantically expected tag at the top level |
| 18 | + - `outline-core-link` for instance requires (if slotted) an `a` tag as the root element of the slot. |
| 19 | + - `outline-core-button` also requires (if slotted) a `button` tag as the root element of the slot. |
| 20 | +- A custom element that provides its own styling and encapsulation |
| 21 | + - `outline-core-card` would be a component example that |
| 22 | + - Provides its own styling and encapsulation to handle functionality and responsive behaviors |
| 23 | + - And also either: |
| 24 | + - Instructs the consuming application to provide a custom element as the first level child of a `slot`, thus providing it's own styling. |
| 25 | + - Allows for slotted content to be styled by the consuming application |
| 26 | +
|
| 27 | +Upcoming work will allow for the "styling by the consuming application" option to be more easily |
| 28 | +implemented in a standardized and simplified way. |
| 29 | +
|
| 30 | +When updates to build tooling is in place, CSS would be added to an `COMPONENT-NAME.global.css` file, |
| 31 | +and then processed either to be loaded on the fly, or manually via a standard `*.global.css` file. |
| 32 | +=== REMOVE ABOVE THIS LINE (AFTER YOU READ IT) === |
| 33 | +*/ |
0 commit comments