Skip to content
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

[FEATURE] Gérer l'abscence de label pour les inputs et textarea #617

Merged
merged 2 commits into from
May 2, 2024

Conversation

matthiasferraina
Copy link
Contributor

@matthiasferraina matthiasferraina commented Apr 30, 2024

🎄 Problème

Actuellement, Il n'est pas possible d'utiliser les composants PixInput et PixTextarea de la version 45.0.0 de pix-ui dans Pix App. En effet, si on ne passe pas un label en yield aux composants PixInput et PixTextarea, un élément html label vide est quand même généré par ces composants. Cela cause des problèmes d'accessibilité et des regressions visuelles.

🎁 Proposition

Utiliser la gestion de l'absence de label à la manière du PixSelect.

🎅 Pour tester

Aller sur storyBook
Constater l'absence de label pour les PixInput et PixTextarea en inspectant le html des éléments concernés

@pix-bot-github
Copy link

Une fois l'application déployée, elle sera accessible à cette adresse https://ui-pr617.review.pix.fr
Les variables d'environnement seront accessibles sur scalingo https://dashboard.scalingo.com/apps/osc-fr1/pix-ui-review-pr617/environment

@matthiasferraina matthiasferraina force-pushed the pix-handle-no-label-on-input branch 2 times, most recently from 1aafce6 to 64ff13f Compare April 30, 2024 09:08
@matthiasferraina matthiasferraina marked this pull request as ready for review April 30, 2024 15:22
@matthiasferraina matthiasferraina force-pushed the pix-handle-no-label-on-input branch 2 times, most recently from 20c91bb to cf89447 Compare May 2, 2024 08:19
@pix-service-auto-merge pix-service-auto-merge force-pushed the pix-handle-no-label-on-input branch from cf89447 to 1e911a4 Compare May 2, 2024 08:29
@pix-service-auto-merge pix-service-auto-merge merged commit 2c54076 into dev May 2, 2024
4 of 7 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the pix-handle-no-label-on-input branch May 2, 2024 08:32
pix-service-auto-merge pushed a commit that referenced this pull request May 2, 2024
# [45.2.0](v45.1.5...v45.2.0) (2024-05-02)

### 🚀 Amélioration

- [#617](#617) Gérer l'abscence de label pour les inputs et textarea
@pix-service-auto-merge
Copy link
Contributor

🎉 This PR is included in version 45.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

5 participants