Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Inset text component contains a non-GDS CSS class #25

Open
danielelder opened this issue Mar 27, 2024 · 0 comments
Open

Inset text component contains a non-GDS CSS class #25

danielelder opened this issue Mar 27, 2024 · 0 comments

Comments

@danielelder
Copy link

danielelder commented Mar 27, 2024

The govInsetText component contains an extra Salesforce class "slds-hyphenate".

According to the SLDS documentation "This will allow the text to break, or hyphenate, depending on the browser's capabilities". This may not be needed and may cause text to format differently to what is expected from a gov.uk service.

If there is a requirement for special formatting, it should be added as an option to the component and not as default behaviour.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant