You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using a cds-search component next to a cds-dropdown, both in the lg size. The search bar, however, visually appears as 1px smaller than the dropdown.
After some scavenging, this appears to happen because the input part of the cds-search has box-sizing: border-box, while other components (e.g., the dropdown) do not have this setting.
Using the following css:
cds-search::part(input) {
box-sizing: unset;
}
Fixes it.
Component(s) impacted
cds-search
Browser
Microsoft Edge
Carbon for IBM.com version
2.10.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Description
We are using a
cds-search
component next to acds-dropdown
, both in thelg
size. The search bar, however, visually appears as 1px smaller than the dropdown.After some scavenging, this appears to happen because the input part of the
cds-search
hasbox-sizing: border-box
, while other components (e.g., the dropdown) do not have this setting.Using the following css:
Fixes it.
Component(s) impacted
cds-search
Browser
Microsoft Edge
Carbon for IBM.com version
2.10.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
ST4SD Registry UI
Package
@carbon/web-components
CodeSandbox example
https://web-components.carbondesignsystem.com/?path=/story/components-search--default
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: