Skip to content

paper-checkbox should have an indeterminate state #1749

Closed
@KyNorthstar

Description

For lists with a "Select All" checkbox, or for displays like this compatibility matrix, an in-between (commonly called indeterminate) state is necessary. Microsoft gives a great example of how this should happen:

A list titled "Pizza Toppings", with "Select All" indeterminate, "Pepperoni" and "Mushrooms" as unchecked, and "Beef" and "Onions" checked

I propose the following addition:

<paper-checkbox indeterminate> label</paper-checkbox>

Where this will always give the checkbox an indeterminate state. This might override the checked state, so the following:

<paper-checkbox indeterminate> label</paper-checkbox>
<paper-checkbox checked indeterminate> label</paper-checkbox>
<paper-checkbox indeterminate checked> label</paper-checkbox>

would all render exactly the same way.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions