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

fix(TextArea): remove placeholder attributes if values are falsy #7156

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Oct 28, 2020

Closes #7132

This PR prevents the TextArea component from having empty placeholder or aria-placeholder attributes which would raise a11y errors

Testing / Reviewing

Confirm that placeholder and aria-placeholder are not added to the component when their values are falsy

@netlify
Copy link

netlify bot commented Oct 28, 2020

Deploy preview for carbon-elements ready!

Built with commit d368a4e

https://deploy-preview-7156--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Oct 28, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit d368a4e

https://deploy-preview-7156--carbon-components-react.netlify.app

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emyarod 🥳

@kodiakhq kodiakhq bot merged commit 9280d50 into carbon-design-system:master Nov 3, 2020
@emyarod emyarod deleted the 7132-textarea-placeholders branch November 5, 2020 18:22
@emyarod emyarod mentioned this pull request Nov 12, 2020
59 tasks
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.

Textarea shows both placeholder and aria-placeholder, and thats an issue
4 participants