From dbc3bb2995965bdaa2c14d3923620bbfeae63b03 Mon Sep 17 00:00:00 2001 From: Tommmaso Menga Date: Mon, 15 Jul 2024 17:41:12 +0200 Subject: [PATCH] docs(sbb-radio-button, sbb-radio-button-panel): update readme --- src/elements/radio-button/radio-button-panel/readme.md | 7 +++++++ src/elements/radio-button/radio-button/readme.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/elements/radio-button/radio-button-panel/readme.md b/src/elements/radio-button/radio-button-panel/readme.md index f9bb321af6..b40199053e 100644 --- a/src/elements/radio-button/radio-button-panel/readme.md +++ b/src/elements/radio-button/radio-button-panel/readme.md @@ -36,6 +36,13 @@ The `allowEmptySelection` property allows user to deselect the component. ## Style +The component has three different sizes, which can be changed using the `size` property (`m`, which is the default and `s`). +If used inside a `sbb-radio-button-group`, the `size` will be inherited from it. + +```html +Size +``` + The component's label can be displayed in bold using the `sbb-text--bold` class on a wrapper tag: ```html diff --git a/src/elements/radio-button/radio-button/readme.md b/src/elements/radio-button/radio-button/readme.md index 3f2b36694e..b9f6539792 100644 --- a/src/elements/radio-button/radio-button/readme.md +++ b/src/elements/radio-button/radio-button/readme.md @@ -33,7 +33,7 @@ The `allowEmptySelection` property allows user to deselect the component. ## Style The component has three different sizes, which can be changed using the `size` property (`m`, which is the default, `s` and `xs`). -If used inside a `sbb-radio-button-group`, the `size` will be inherited from the group. +If used inside a `sbb-radio-button-group`, the `size` will be inherited from it. ```html Size