Conditionally hide tone and size props when variant is 'display'
Hide 'error' tone option in Heading story.
Note: Storybook only allows for 1 condition per control at the root level. Since I set the tone to be conditionally hidden for the display variant, I could not add another condition to hide the error option for tone when the variant is heading. Because of this, the error tone is only hidden on the Heading story and will still be visible if switching variants on the Docs page or other stories.
Also updates a missed requirement: bottomSpacing should only be fully customizable for Heading and Display variants. For Body, bottomSpacing should only be able to set to 'none' or left undefined to use the default.
[x] PR has changelog label applied if it's to be included in the changelog
[x] Acceptance criteria:
All satisfied or
Documented reason for not being performed or
Split to separate ticket and ticket is linked by relevant AC(s)
[x] Above PR sections adequately filled out
[x] If any breaking changes, in accordance with the pre-1.0.0 versioning guidelines: a CU ticket has been created for the VA Mobile App detailing necessary adjustments with the package version that will be published by this ticket
Code
[x] Tests are included if appropriate (or split to separate ticket)
Description of Change
Update Text component storybook stories:
tone
andsize
props when variant is'display'
'error'
tone option in Heading story.tone
to be conditionally hidden for the display variant, I could not add another condition to hide the error option for tone when the variant is heading. Because of this, the error tone is only hidden on the Heading story and will still be visible if switching variants on the Docs page or other stories.Also updates a missed requirement:
bottomSpacing
should only be fully customizable for Heading and Display variants. For Body, bottomSpacing should only be able to set to'none'
or left undefined to use the default.Testing Packages
N/A
Screenshots/Video
https://github.com/user-attachments/assets/11bb65cb-35e9-4669-b105-d36caeaa3d8a
Testing
PR Checklist
Code reviewer validation:
changelog
label applied if it's to be included in the changelogPublish
If changes warrant a new version per the versioning guidelines and the PR is approved and ready to merge:
main
into branchmain