Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

"Read only" mode?  #126

@guss77

Description

@guss77

Description

I want to be able to use the paper-toggle-button to show the status of an item (which could be active or inactive) but without the user being able to change it.

To prevent modifications I've set the element's disabled attribute but that changes the color of the bar and button so it no longer looks to be "on". From looking at the code, unlike all the other modes, there doesn't seem to be a CSS option to change the "disabled" color.

Expected outcome

Ideally it would be possible to put the toggle button into a "read-only mode" where it rejects attempts to modify it. Less ideally we would be able to set the color for "on but disabled" and "off but disabled" using CSS

Actual outcome

"disabled mode" always looks the same without the ability to customize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions