swisspost / design-system

The Swiss Post Design System - for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
126 stars 14 forks source link

[component]: Text highlighted #3419

Closed Cian77 closed 1 month ago

Cian77 commented 3 months ago

Description

Text highlighted can be used when a certain paragraph needs a higher attention than the other paragraphs.

Open issues:

Design:

Design

https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=1481-12917

Tokens

tokens.$default-map: components.$post-text-highlighted;

.text-highlight { background-color: tokens.get('text-highlight', 'bg'); }


### Proposed markup
```html
<p class="text-highlighted"></p>

Tasks

### 💻 Tasks
- [x] Review Design (All states present? Possible to implement?)
- [ ] https://github.com/swisspost/design-system/issues/3496
- [ ] HTML/CSS implementation
- [ ] Documentation in Storybook
- [ ] Visual regression tests
- [ ] Design review
gfellerph commented 2 months ago

@oliverschuerch add map that is needed