Comments (5)
updates to spec based on #24
- Allow optionally passing in an input. This helps bind for other frameworks:
<label>
<calcite-checkbox checked></checkbox>
Standard checkbox
</label>
<label>
<calcite-checkbox>
<input type="checkbox"> <!-- Angular would bind to this -->
</checkbox>
Checkbox passed in to override default internal checkbox via a slot
</label>
- Event name should now be
calciteCheckboxChange
I believe as we are moving towards namespacing our events tocalcite
and the component name.
from calcite-design-system.
Adding @vcolavin to this one and giving a bit more information.
In ArcGIS Online we currently use a hacky adjacent selector CSS solution which we lightly wrap in a widget. Here is the relevant bits of that implementation, plus a kind of typeScript spec of what we need features wise: https://codepen.io/paulcp/pen/yWGLYK
We're looking to have something along the lines of:
<label>
<calcite-checkbox checked disabled large color="white"></checkbox>
This option is checked, disabled, large, and white
</label>
<label>
<calcite-checkbox indeterminate color="transparent"></checkbox>
This option is mixed and meant to exist on top of an image.
</label>
Previous designs for this component:
@vcolavin Have a look at the components people have already written and take a crack at it. Pretty early days so things like CSS class name methodology aren't totally finalized, but we can back fill any important decisions we make as a team.
from calcite-design-system.
@paulcpederson do we want to support something like this use case?
<calcite-checkbox id='my-id' />
<!-- some other stuff -->
<label for='my-id>label is over here</label>
from calcite-design-system.
Yeah I think we won't document that, but if it's possible it would be good to support as some devs probably are used to this method of labeling form controls.
from calcite-design-system.
for label
we might have to use calcite-label
#31. However, the development of the label component should not affect check box component development I believe.
from calcite-design-system.
Related Issues (20)
- Memory leak with adding/removing block components HOT 3
- [Carousel] Add `goTo()` and other convenience methods
- label: replace "default" value with a more meaningful value. HOT 3
- Tooling: Add a priority option to the test template HOT 2
- Standalone calendar
- Ensure all components inherit font-family HOT 2
- Create a selectable common test HOT 1
- [Carousel] Add support for swipe / flick touch interaction
- [`selectionMode`] Audit + refactor event / selection behavior of components with parent / child relationships
- Radio Button Group: no validation message displayed during form submission when required property is set HOT 2
- Change the formAssociated commonTest to allow more complex HTML snippets
- Dropdown width css var isn't being applied in the Split Button
- [Tip / Tip Group / Tip Manager] Deprecate components
- Add ability to check a form component's validity for setting custom messages HOT 2
- [Carousel] Animation on Carousel Item change doesn't always occur
- Missing validation icon on first submission in React HOT 1
- Some properties (e.g. `inputMode` not available anymore) HOT 4
- Input Time Picker should allow a placeholder
- Slider label wrapping can cause handle to move off track
- `TypeError` in `filter` when disconnecting during update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calcite-design-system.