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

Outline shows when input type="search" is grouped with button #571

Open
frodik opened this issue Jul 1, 2024 · 1 comment
Open

Outline shows when input type="search" is grouped with button #571

frodik opened this issue Jul 1, 2024 · 1 comment

Comments

@frodik
Copy link

frodik commented Jul 1, 2024

Please search for duplicate or closed issues first.

Describe the issue

Current Behavior

When is grouped together with button there is an ugly outline showing around input on the side where the button is not. The corners are rounded, but focused outline is more rectangular than the side of the input

Expected Behavior

grouped with button should behave the same as standalone input when focused

Reproduction URL

https://codepen.io/Frodik/pen/NWVQWjK

Environment

Chrome

@Sector6759
Copy link

Not sure what your goal is. Do you want to have the button also be round, or do you want the whole group (search input and button) to be rectangular?

If your goal is to achive the former, you need to use <fieldset role="search"> instead of <fieldset role="group">. (docs)

If you want the latter, I am not sure if this is possible, as search inputs are intentionally rounded. (docs)

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

No branches or pull requests

2 participants