input with slotted content (e.g. calcite-button) has a mismatch of component heights when root-font size has changed #7411
Labels
0 - new
New issues that need assignment.
a11y
Issues related to Accessibility fixes or improvements.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
design
Issues that need design consultation prior to development.
design-tokens
Issues requiring design tokens.
estimate - 5
A few days of work, definitely requires updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
Milestone
Check existing issues
Actual Behavior
calcite-input allows you to use a slotted action next to the text input box.
We have found that if the root font size has been changed e.g. by a user altering their default font-size in chrome for accessibility purposes, then the button inside of the input becomes misaligned. Please see the codepen below for the observed behaviour.
Expected Behavior
Ideally the button would stretch to match the height of the input.
Reproduction Sample
https://codepen.io/JDawe/pen/jOQXdRp
Reproduction Steps
See the repro sample. The behaviour can be observed by changing the root font size to a non-standard value (e.g. 24px).
Changing the default font-size typically occurs when a user over-rides the default value inside of their browser.
Reproduction Version
1.4.3
Relevant Info
No response
Regression?
No response
Priority impact
p4 - not time sensitive
Impact
A UI bug. It doesn't effect functionality, but definitely does not look correct.
Calcite package
Esri team
N/A
The text was updated successfully, but these errors were encountered: