Skip to content

fix(input-group): empty prefix/suffix is padded#15512

Merged
simeonoff merged 3 commits intomasterfrom
simeonoff/fix-15412-19.2.x
Mar 18, 2025
Merged

fix(input-group): empty prefix/suffix is padded#15512
simeonoff merged 3 commits intomasterfrom
simeonoff/fix-15412-19.2.x

Conversation

@simeonoff
Copy link
Copy Markdown
Collaborator

Closes #15412

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@desig9stein
Copy link
Copy Markdown
Contributor

desig9stein commented Mar 14, 2025

@simeonoff This causes issues in the Bootstrap theme. See the double border at the end of the input-group
Screenshot 2025-03-14 at 16 13 52

@desig9stein
Copy link
Copy Markdown
Contributor

desig9stein commented Mar 14, 2025

Ok, the problem appears to be in the bootstrap theme only. The display none won't work. Rather, I suggest adding the code below. This will remove the double border from the end of the input if there is an empty suffix/prefix.

%form-group-display--bootstrap-prefixed {
    &:has(igx-prefix:empty),
    &:has([igxPrefix]:empty) {
        %bootstrap-input {
            border-inline-start-width: 0;
        }
    }
}
%form-group-display--bootstrap-suffixed {
      &:has(igx-suffix:empty),
      &:has([igxSuffix]:empty) {
          %bootstrap-input {
              border-inline-end-width: 0;
          }
      }
}    

@desig9stein desig9stein added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Mar 18, 2025
@simeonoff simeonoff merged commit cc47e51 into master Mar 18, 2025
4 checks passed
@simeonoff simeonoff deleted the simeonoff/fix-15412-19.2.x branch March 18, 2025 08:50
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.

Grid: Excel Style Filtering -> Search suffix always visible

2 participants