-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistency in naming: Width / Width Scale / Height Scale #6172
Comments
Agree, this would be a good one to dig into. |
For 2024 we should work towards prop deprecation, and for the 2025 breaking change consider removal of any of the deprecated components. |
I scanned through components and made a list of what each uses. The majority (50+) of components only use Dialog
Notice
Button
Shell-Panel
Sheet
Shell-center-row
Shell-pane
|
Related issues to consider: [Design] Consistent width-scale , height-scale values across components #7616 |
Currently:
The discussion There is no great use case for using |
**Related Issue:** #6172 ## Summary Refactor to consolidate `width/height` and `widthScale/heightScale` into a single property `width` with `s / m / l / auto / full` as options, and `height` with `s / m / l`. Deprecate `widthScale` and `heightScale` properties and the `half` value. Components addressed: - `button` - `dialog` - `dropdown` - `notice` - `segmented-control` - `select` - `sheet` - `shell-panel` - `split-button` deprecate: deprecate widthScale/heightScale properties in favor of width/height.
Installed and assigned for verification. |
🍡 Verified locally |
Description
There are a few instances where we use "heightScale", "widthScale" to determine sizes for components, usually accepting s/m/l. There are also instances of "width" used frequently.
We should look at consolidating these patterns / naming...
heightScale
-calcite-flow-item
,calcite-panel
,calcite-shell-center-row
detachedHeightScale
-calcite-shell-panel
widthScale
--calcite-shell-panel
,calcite-flow-item
,calcite-panel
Many other components use
width
- some ares/m/l
choice, others usefull / auto / half
etc.Acceptance Criteria
A consistent naming and usage pattern is defined and implemented. I do think we should continue with the proposed changes to panel to remove height / width settings in general and have it behave as a block level element that fills the container it is placed in (most of the time, this would be shell panel, and its defined width / height scale or explicit value)
Relevant Info
No response
Which Component
Above
Example Use Case
No response
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: