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

TextFields with trailing text and closing icon are overlapping #3298

Open
HDinger opened this issue Jan 29, 2025 · 1 comment
Open

TextFields with trailing text and closing icon are overlapping #3298

HDinger opened this issue Jan 29, 2025 · 1 comment
Labels

Comments

@HDinger
Copy link
Contributor

HDinger commented Jan 29, 2025

Steps to reproduce

  • Create a TextField with trailing text and closing icon activated
render(Primer::Alpha::TextField.new(name: "my-text-field",
                                    label: "My text field",
                                    show_clear_button: true,
                                    trailing_visual: { text: { text: "days" } }))

Actual behavior

  • The closing icon overlaps the traling text
Image

Expected

  • The text and the icon should be next to each other
Copy link
Contributor

Uh oh! @HDinger, at least one image you shared is missing helpful alt text. Check your issue body to fix the following violations:
  • Images should have meaningful alternative text (alt text) at line 16

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

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

No branches or pull requests

1 participant