BUG-000169703 Segmented Control does not respect scale
beyond first page load
#9955
Closed
2 of 6 tasks
Labels
4 - verified
Issues that have been released and confirmed resolved.
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 - 3
A day or two of work, likely requires updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Support
Issues accepted from Esri Support.
Milestone
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 ID: BUG-000169703
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 - #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)
The text was updated successfully, but these errors were encountered: