Skip to content

Fix input group corners when a hidden input comes first - #43426

Open
cestercian wants to merge 1 commit into
twbs:mainfrom
cestercian:fix/input-group-hidden-input-radius
Open

cestercian wants to merge 1 commit into
twbs:mainfrom
cestercian:fix/input-group-hidden-input-radius

Conversation

@cestercian

Copy link
Copy Markdown
Contributor

Description

Input group corner rules now skip input[type="hidden"] the same way they skip .input-group-ignore. The first visible element after a leading hidden input also gets its negative start margin reset, so it doesn't poke 1px outside the group.

Motivation & Context

Combobox inserts its hidden input right before the toggle, so a combobox placed first in an .input-group lost its start rounded corners. Hidden inputs are never visible, so they shouldn't count as the first or last child here. Checked in Chrome with the repro from the issue: start radius goes from 0 to 8px and the toggle lines up with the group edge again; a combobox at the end of a group is unchanged.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • All new and existing tests passed

Related issues

Fixes #43423

@cestercian
cestercian requested a review from a team as a code owner November 20, 2026 15:11
@julien-deramond julien-deramond added v6 v6, the main branch bug Something does not work as documented css Sass sources or compiled CSS labels Nov 20, 2026

This branch has not been deployed

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

Labels

bug Something does not work as documented css Sass sources or compiled CSS v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rounded corners of a combo box in an input-group

2 participants