Closed fdeters closed 3 weeks ago
@fdeters Thanks for submitting this! Could you provide an isolated reproduction case for us to look into?
Here's a repro: https://codepen.io/driskull/pen/WNqjrpq?editors=1010
This was also filed as BUG-000169703
Installed and assigned for verification.
Verified with the Chromatic build using Matt's example:
Check existing issues
Actual Behavior
Filed as
BUG-000169703
🐛The
calcite-segmented-control-item
does not respect thescale
property on thecalcite-segmented-control
if the element was rendered after the initial page load. Specifically, I'm seeing acalcite-segmented-control
withscale="s"
render as though it hadscale="m"
.Expected Behavior
I expect the
calcite-segmented-control
andcalcite-segmented-control-item
to respect thescale
property at all times.Reproduction Samples
Reproduction Steps
First sample
Second sample
Also, we can see this behavior on my team's live app:
calcite-segmented-control
in the bottom left that can be used to switch the language. It is rendering correctly withscale="s"
.calcite-modal
we saw in step 2. You can now see that thecalcite-segmented-control-item
is rendering as though it hadscale="m"
, even though it still hasscale="s"
.Notice that the
calcite-segmented-control
visible in the site header never changes and always shows asscale="s"
, like it should.When I first encountered this bug, we were using that same
calcite-segmented-control
component in other areas of the application, and it exhibited the same issue.Reproduction Version
2.9.0
Relevant Info
OS: Windows 10 Browser: Observed on recent versions of Chrome, Edge, and Firefox JS Framework: EmberJS 5.10 with
@embroider/router@2.1.8
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
Currently, it's just a minor annoyance. It could cause layout issues for other users.
Calcite package
Esri team
N/A
Salesforce Submitter: Ashish Boban
Salesforce Submit Date: 8/02/2024 10:47 PM
Salesforce Bug Type: Failure/Error
Salesforce Severity: Medium
Steps to Repro:
Steps to Reproduce:
Other Information: This issue is also highlighted in the GitHub page for Calcite Design System - https://github.com/Esri/calcite-design-system/issues/9955.
Customer Data Specific Bug:
No
Repro Environment Details:
Windows OS 11.0, ArcGIS Maps SDK for JavaScript v4.30, Chrome browser.
Sample Environment Access Information: NA
Development/PSIRT request?
No
Attached Files: Yes
Attached Video: No
Attached Logs: No
Attached Data: Yes
Reproducible in Latest Version: Yes
Repro Data: \esri.com\sf_filestore\PRD\Attachments\Defects\BUG-000169703
Work Around: (n/a)
Product: Calcite Design System
Functional Category: Calcite Design System
Client Platform: (n/a)
Version Found: 2.8
Planned Version Fixed: (n/a)
Comment: (n/a)