Skip to content

feat(ui5-switch): implement readonly state#13142

Open
NHristov-sap wants to merge 2 commits intomainfrom
BL_switch_readonly
Open

feat(ui5-switch): implement readonly state#13142
NHristov-sap wants to merge 2 commits intomainfrom
BL_switch_readonly

Conversation

@NHristov-sap
Copy link
Contributor

This PR implements readonly state of ui5-switch. In that state the component is non-interactive, but it is not disabled, and has different styling, as it can be seen below:

Default state:

image

Readonly state (all Horizon Themes):

image image image image

JIRA: BGSOFUIBALKAN-10097

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Feb 25, 2026

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview February 25, 2026 12:10 Inactive
* @since 2.20.0
*/
@property({ type: Boolean })
readonly!: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readonly = false;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview February 26, 2026 07:14 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants