-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Text): support setting heading level to span and header pretitleAs #1170
feat(Text): support setting heading level to span and header pretitleAs #1170
Conversation
@@ -231,17 +231,15 @@ type AllowedExtra = | |||
| typeof SimpleBlock | |||
| typeof ValueBlock; | |||
|
|||
type TextAs = 'h1' | 'h2' | 'h3' | 'h4'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This restriction of up to H4 was incoherent with the rest of mistica.
It's already producing limitations on the project of configurability from CMS:
https://github.com/Telefonica/webapp/blob/775fe832e4707337d9478ff367a3981732678618/web/src/modular-pages/modules/components/data-card-advanced/index.tsx#L142
There does not seem to be a valid reason why a mistica Header can be up to H6 but the mistica community component is limited to H4
Size stats
|
Accessibility report ℹ️ You can run this locally by executing |
On hold for https://jira.tid.es/browse/PRODUCTDSN-2500 We expect @MontseTelefonica to reach out to @yceballost to check what mistica documentation needs to be updated |
Deploy preview for mistica-web ready! ✅ Preview Built with commit 20ae04a. |
cf2ac32
to
339a911
Compare
Yep, the specs should indicate that a title may not include hierarchy. The current specs are not updated with this definition. |
…s_the_board_also_having_pretitle_as_heading/ACCOUNT-26117
# [15.15.0](v15.14.0...v15.15.0) (2024-07-16) ### Bug Fixes * **overscroll color:** background color not changing when switching dark/light mode ([#1172](#1172)) ([9b74fe6](9b74fe6)) ### Features * **Cards:** add role prop for touchable cards ([#1169](#1169)) ([a2a7cbf](a2a7cbf)) * **css:** export mistica tokens as public css custom properties ([#1161](#1161)) ([c5f74bc](c5f74bc)) * **Header:** support headline (Tag) ([#1174](#1174)) ([07d8fae](07d8fae)) * **Text:** support setting heading level to span and header pretitleAs ([#1170](#1170)) ([8abf43e](8abf43e))
🎉 This PR is included in version 15.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
(#1167)