Skip to content

Fix : removing DescriptionTag if description not provided#460

Merged
ddecrulle merged 2 commits into
codegouvfr:mainfrom
Destinyyyy:pat/alert-unecessary-render
Nov 6, 2025
Merged

Fix : removing DescriptionTag if description not provided#460
ddecrulle merged 2 commits into
codegouvfr:mainfrom
Destinyyyy:pat/alert-unecessary-render

Conversation

@Destinyyyy

@Destinyyyy Destinyyyy commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Description

During an RGAA audit, it's been pointed out that there was an empty p/div whenever the description was empty.
The DescriptionTag node was being rendered even if the description property wasn't provided.

Fix

Don't render the DescriptionTag if description isn't provided

@Destinyyyy Destinyyyy changed the title [Frontend] chore: removing DescriptionTag if description not provided Fix : removing DescriptionTag if description not provided Nov 5, 2025
@ddecrulle
ddecrulle merged commit 80dad87 into codegouvfr:main Nov 6, 2025
1 check passed
@ddecrulle

Copy link
Copy Markdown
Collaborator

Thank's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants