bug(calcite-button): shadow dom width does not match host width #8490
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 2
Small fix or update, may require updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
low risk
Issues with low risk for consideration in low risk milestones
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
If
<calcite-button scale="s">
is told to take 32px x 32px, the host element takes the desired size, but the shadow DOM's<button>
is 24px x 32pxExpected Behavior
If
<calcite-button>
has attributewidth="full"
,<button>
haswidth: 100%;
style applied, matching the width of the containerReproduction Sample
https://codepen.io/maxpatiiuk/pen/NWJWXBP?editors=1100
Reproduction Steps
Reproduction Version
2.1.0
Relevant Info
Chrome 120, macOS 14.2
Regression?
No response
Priority impact
p4 - not time sensitive
Impact
I need to hardcode 32px x 32px size for the button because button may either display iconStart, or have a legacy Esri font icon slotted in - in both cases, I want it to maintain the same size (it does not right now as styles for when button has slotted content are quite different)
Current workaround:
scale="m"
scale="s"
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: