-
Notifications
You must be signed in to change notification settings - Fork 77
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
Component: Radio Group #5
Comments
@julio8a @patrickarlt I started looking into this and wanted to ask if you had additional comps or examples of how this component would be used? Ionic's <ion-radio-group>
<ion-item>
<ion-label>Cord</ion-label>
<ion-radio value="cord"></ion-radio>
</ion-item>
<ion-item>
<ion-label>Duesenberg</ion-label>
<ion-radio value="duesenberg"></ion-radio>
</ion-item>
<ion-item>
<ion-label>Hudson</ion-label>
<ion-radio value="hudson"></ion-radio>
</ion-item>
<ion-item>
<ion-label>Packard</ion-label>
<ion-radio value="packard"></ion-radio>
</ion-item>
<ion-item>
<ion-label>Studebaker</ion-label>
<ion-radio value="studebaker"></ion-radio>
</ion-item>
</ion-radio-group> Not sure if we wanted something similar or something a little more simple like: <calcite-radio-group>
<calcite-radio-group-item value="cord">Cord</calcite-radio-group-item>
<calcite-radio-group-item value="duesenberg">Duesenberg</calcite-radio-group-item>
<calcite-radio-group-item value="hudson">Hudson</calcite-radio-group-item>
<calcite-radio-group-item value="packard">Packard</calcite-radio-group-item>
<calcite-radio-group-item value="studebaker">Studebaker</calcite-radio-group-item>
</calcite-radio-group> |
the |
@jcfranco it might be good to follow what @kumarGayu did for <calcite-radio-group>
<calcite-radio-group-item value="cord">
Cord <!-- Optional Label-->
<input slot="input" type="radio" name="foo"> <!-- Hidden element for <form> and frameworks to interact with. Can be hidden by the calcite component. -->
</calcite-radio-group-item>
<calcite-radio-group-item value="cord">
Duesenberg <!-- Optional Label-->
<input slot="input" type="radio" name="foo"> <!-- Hidden element for <form> and frameworks to interact with. Can be hidden by the calcite component. -->
</calcite-radio-group-item>
</calcite-radio-group> |
@julio8a Per our discussion, I will hold off on this until I get a more detailed spec. |
Very belated update: Spoke w/ @julio8a and this will follow Calcite Web's radio group implementation. |
@julio8a Could you help provide focus states? Currently, Calcite Web radio group styling does not have any, so there is no indicator on which is one is active when you tab between groups. |
@julio8a 👌 |
@julio8a @jcfranco There seems to be quite a bit of difference between the designs in #5 (comment) and the designs in #5 (comment). Do we need to reconcile those? I do really like the "pillbox" style design from @jcfranco. We use similar stuff all over Vector Tile Style Editor: |
@patrickarlt @julio8a I'll leave it up to you. 😉 @patrickarlt On a related note, how are you labeling your radio groups? Wrapping in |
I think @julio8a was showing the designs from radio button, not radio group. The pills-type UI is what we need/use in Online as well: http://esri.github.io/calcite-web/documentation/components/#radio-group |
Yes, I mean radio button, not radio group. 😊 |
📻 |
@julio8a Awesome! Can you share which colors variables/values are being used? |
The active color is now: |
* Fix cursor not showing up on item label. * Tweak colors. * Rename vars.
Closing for now, any further work can be opened as new issues. Nice work @jcfranco 👍 |
* master: (32 commits) v1.0.0-beta.2 cleanup build process v1.0.0-beta.1 minor cleanup to test master push #86 - remove calcite-fonts (#89) Update focus style Button style updates Fixes typos, adds css vars, sets element dir add modals to stencil config Prep for beta 1 release (#85) calcite-colors: 1.3.1 #9 - 🔲 integration of calcite-buttons into modals #9 - 🔲 modals Ensures alerts are full width on medium viewports Bumps stencil version Updates to alerts Adds dir and conditional styling for icons Updates to address PR feedback Adds calcite button component Issue #5: Rename group event. ... # Conflicts: # src/index.html # stencil.config.ts
* master: (32 commits) v1.0.0-beta.2 cleanup build process v1.0.0-beta.1 minor cleanup to test master push #86 - remove calcite-fonts (#89) Update focus style Button style updates Fixes typos, adds css vars, sets element dir add modals to stencil config Prep for beta 1 release (#85) calcite-colors: 1.3.1 #9 - 🔲 integration of calcite-buttons into modals #9 - 🔲 modals Ensures alerts are full width on medium viewports Bumps stencil version Updates to alerts Adds dir and conditional styling for icons Updates to address PR feedback Adds calcite button component Issue #5: Rename group event. ... # Conflicts: # package-lock.json # package.json # src/index.html
…e empty with a start/end icon (#9300) *Related Issue:** #6413 ## Summary This updates `segmented-control-item` to display a centered icon when specified and the item is empty. **Note:** this removes using `value` as a fallback label as non-breaking for the following reasons: * this behavior is [intentional](https://github.com/Esri/calcite-design-system/blob/main/packages/calcite-components/src/components/segmented-control-item/segmented-control-item.e2e.ts#L38-L46), but there is no explicit spec for it in the [original issue](#5), [PR](#72) nor [documentation](https://developers.arcgis.com/calcite-design-system/components/segmented-control/) * it is inconsistent with how other components expect text to be provided * it [breaks if there's any whitespace](https://codepen.io/jcfranco/pen/XWwWGEy?editors=1000) * the current behavior will lead to label that might not be user-friendly in most cases (e.g., casing, localization)
Esri/calcite-web#1030
Also See: https://ionicframework.com/docs/api/radio-group, https://ionicframework.com/docs/api/radio
The text was updated successfully, but these errors were encountered: