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]: Change the input hint text wrapper from<div> to <p> #3834

Open myrta2302 opened 3 weeks ago

myrta2302 commented 3 weeks ago

Description

In the documentation, the input hint text is currently rendered within a <div> element: Input Hint Documentation. However, it should use a <p> element for better semantics and consistency with the validation message, which also uses a <p>.

Design

https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=577-14513&t=9BfwPJgQaTSo5u5n-0

Tokens

Tasks

### 💻 Tasks
- [ ] HTML/CSS implementation
- [ ] Documentation in Storybook
- [ ] Visual regression tests
- [ ] Design review
oliverschuerch commented 3 weeks ago

Could be affected by #3500