You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/radio-button/accessibility.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Accessibility in Blazor RadioButton component
11
11
12
-
The Blazor RadioButton component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
12
+
The Blazor RadioButton component follows established accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), and [WCAG 2.2](https://www.w3.org/TR/WCAG22/). It also adheres to applicable [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) used to evaluate accessibility.
13
13
14
14
The accessibility compliance for the Blazor RadioButton component is outlined below.
15
15
@@ -46,16 +46,16 @@ The Blazor RadioButton component followed the [WAI-ARIA](https://www.w3.org/WAI/
46
46
47
47
## Keyboard interaction
48
48
49
-
The Blazor RadioButton component followed the [keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/radio/#keyboardinteraction) guideline, making it easy for people who use assistive technologies (AT) and those who completely rely on keyboard navigation. The following keyboard shortcuts are supported by the Blazor RadioButton component.
49
+
The Blazor RadioButton component follows the [keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/radio/#keyboardinteraction) guideline, supporting users of assistive technologies and keyboard-only navigation. The following keyboard shortcuts are supported:
50
50
51
51
| Windows | Mac | Actions |
52
52
| --- | --- | --- |
53
-
| <kbd>↑</kbd> or <kbd>←</kbd> | <kbd>↑</kbd> or <kbd>←</kbd> | Move and select the previous options. |
54
-
| <kbd>↓</kbd> or <kbd>→</kbd> | <kbd>↓</kbd> or <kbd>→</kbd> | Move and select the next options. |
53
+
| <kbd>↑</kbd> or <kbd>←</kbd> | <kbd>↑</kbd> or <kbd>←</kbd> | Move focus to and select the previous option. |
54
+
| <kbd>↓</kbd> or <kbd>→</kbd> | <kbd>↓</kbd> or <kbd>→</kbd> | Move focus to and select the next option. |
55
55
56
56
## Ensuring accessibility
57
57
58
-
The Blazor RadioButton component component's accessibility levels are ensured through an [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with playwright tests.
58
+
The Blazor RadioButton component's accessibility levels are validated using [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with Playwright tests.
59
59
60
60
The accessibility compliance of the Blazor RadioButton component is shown in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/radio-button) in a new window to evaluate the accessibility of the Blazor RadioButton component with accessibility tools.
Copy file name to clipboardExpand all lines: blazor/radio-button/getting-started.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ documentation: ug
11
11
12
12
# Getting Started with Blazor RadioButton Component
13
13
14
-
This section briefly explains about how to include [Blazor RadioButton](https://www.syncfusion.com/blazor-components/blazor-radio-button) component in your Blazor WebAssembly App using Visual Studio and Visual Studio Code.
14
+
This section explains how to include the [Blazor RadioButton](https://www.syncfusion.com/blazor-components/blazor-radio-button) component in a Blazor WebAssembly app using Visual Studio and Visual Studio Code.
15
15
16
-
To get start quickly with Radio Button Component using Blazor, you can check on this video or [GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/RadioButton) sample.
16
+
To get started quickly with the RadioButton component in Blazor, watch the following video or explore the RadioButton getting-started sample on [GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/RadioButton).
@@ -28,11 +28,11 @@ To get start quickly with Radio Button Component using Blazor, you can check on
28
28
29
29
## Create a new Blazor App in Visual Studio
30
30
31
-
You can create a **Blazor WebAssembly App** using Visual Studio via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-7.0&pivots=vs) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio).
31
+
Create a **Blazor WebAssembly App** using Visual Studio via [Microsoft templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-7.0&pivots=vs) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-integration/template-studio).
32
32
33
33
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor Buttons and Themes NuGet in the App
34
34
35
-
To add **Blazor RadioButton** component in the app, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), search and install [Syncfusion.Blazor.Buttons](https://www.nuget.org/packages/Syncfusion.Blazor.Buttons) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/). Alternatively, you can utilize the following package manager command to achieve the same.
35
+
To add the **Blazor RadioButton** component, open the NuGet Package Manager in Visual Studio (Tools → NuGet Package Manager → Manage NuGet Packages for Solution), search for, and install [Syncfusion.Blazor.Buttons](https://www.nuget.org/packages/Syncfusion.Blazor.Buttons) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/). Alternatively, run the following Package Manager commands:
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for available NuGet packages list with component details.
46
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available on[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for the list of available packages and component details.
You can create a **Blazor WebAssembly App** using Visual Studio Code via [Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-7.0&pivots=vsc) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project).
58
+
Create a **Blazor WebAssembly App** using Visual Studio Code via [Microsoft templates](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) or the [Syncfusion<supstyle="font-size:70%">®</sup> Blazor Extension](https://blazor.syncfusion.com/documentation/visual-studio-code-integration/create-project).
59
59
60
-
Alternatively, you can create a WebAssembly application using the following command in the terminal(<kbd>Ctrl</kbd>+<kbd>`</kbd>).
60
+
Alternatively, create a WebAssembly application using the following command in the terminal(<kbd>Ctrl</kbd>+<kbd>`</kbd>).
61
61
62
62
{% tabs %}
63
63
@@ -73,8 +73,8 @@ cd BlazorApp
73
73
## Install Syncfusion<supstyle="font-size:70%">®</sup> Blazor Buttons and Themes NuGet in the App
74
74
75
75
* Press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the integrated terminal in Visual Studio Code.
76
-
* Ensure you’re in the project root directory where your`.csproj` file is located.
77
-
* Run the following command to install a [Syncfusion.Blazor.Buttons](https://www.nuget.org/packages/Syncfusion.Blazor.Buttons) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/) NuGet package and ensure all dependencies are installed.
76
+
* Ensure you are in the project root directory where the`.csproj` file is located.
77
+
* Run the following commands to install [Syncfusion.Blazor.Buttons](https://www.nuget.org/packages/Syncfusion.Blazor.Buttons) and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/), and restore packages.
78
78
79
79
{% tabs %}
80
80
@@ -88,15 +88,15 @@ dotnet restore
88
88
89
89
{% endtabs %}
90
90
91
-
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available in[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for available NuGet packages list with component details.
91
+
N> Syncfusion<supstyle="font-size:70%">®</sup> Blazor components are available on[nuget.org](https://www.nuget.org/packages?q=syncfusion.blazor). Refer to the [NuGet packages](https://blazor.syncfusion.com/documentation/nuget-packages) topic for the list of available packages and component details.
92
92
93
93
{% endtabcontent %}
94
94
95
95
{% endtabcontents %}
96
96
97
97
## Register Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service
98
98
99
-
Open **~/_Imports.razor**file and import the `Syncfusion.Blazor` and `Syncfusion.Blazor.Buttons`namespace.
99
+
Open **~/_Imports.razor** and import the `Syncfusion.Blazor` and `Syncfusion.Blazor.Buttons`namespaces.
100
100
101
101
{% tabs %}
102
102
{% highlight razor tabtitle="~/_Imports.razor" %}
@@ -107,7 +107,7 @@ Open **~/_Imports.razor** file and import the `Syncfusion.Blazor` and `Syncfusio
107
107
{% endhighlight %}
108
108
{% endtabs %}
109
109
110
-
Now, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor Service in the **~/Program.cs**file of your Blazor WebAssembly App.
110
+
Now, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in **~/Program.cs** of the Blazor WebAssembly app.
The theme stylesheet can be accessed from NuGet through [Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets). Include the stylesheet reference in the `<head>` section of the **~/index.html** file.
134
+
The theme stylesheet is provided via [Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets). Include the stylesheet reference in the `<head>` section of **~/index.html**.
135
135
136
136
```html
137
137
<head>
@@ -140,11 +140,11 @@ The theme stylesheet can be accessed from NuGet through [Static Web Assets](http
140
140
141
141
</head>
142
142
```
143
-
N> Check out the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes)topic to discover various methods ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)) for referencing themes in your Blazor application.
143
+
N> Review [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes)for options to reference themes ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)). Ensure the theme stylesheet is loaded before any custom styles.
144
144
145
145
## Add Blazor RadioButton component
146
146
147
-
Add the Syncfusion<supstyle="font-size:70%">®</sup> Blazor RadioButton component in the **~/Pages/Index.razor** file.
147
+
Add the Syncfusion<supstyle="font-size:70%">®</sup> Blazor RadioButton component in **~/Pages/Index.razor**.
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Syncfusion<supstyle="font-size:70%">®</sup> Blazor RadioButton component in your default web browser.
162
+
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This renders the Syncfusion<supstyle="font-size:70%">®</sup> Blazor RadioButton component in the default web browser.
*[Getting Started with Syncfusion<supstyle="font-size:70%">®</sup> Blazor for Server-Side in Visual Studio](https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio)
170
170
*[Getting Started with Syncfusion<supstyle="font-size:70%">®</sup> Blazor for Server-Side in .NET Core CLI](https://blazor.syncfusion.com/documentation/getting-started/blazor-web-app)
171
171
172
-
N> You can also explore our [Blazor Radio Button Example](https://blazor.syncfusion.com/demos/buttons/radio-button) that shows you how to render and configure the Radio Button.
172
+
N> Explore the [Blazor Radio Button example](https://blazor.syncfusion.com/demos/buttons/radio-button) that demonstrates rendering and configuration of the Radio Button.
Copy file name to clipboardExpand all lines: blazor/radio-button/how-to/customize-radiobutton-appearance.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ documentation: ug
9
9
10
10
# Customize Blazor RadioButton Appearance
11
11
12
-
The appearance of the Radio Button component can be customized by using the CSS rules. Define own CSS rules according to your requirement and assign the class name to the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfInputBase-1.html#Syncfusion_Blazor_Buttons_SfInputBase_1_CssClass) property.
12
+
Customize the appearance of the RadioButton component by applying custom CSS rulesand assigning a CSS class to the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfInputBase-1.html#Syncfusion_Blazor_Buttons_SfInputBase_1_CssClass) property.
13
13
14
-
The background and border color of the Radio Button is customized through the custom classes to create the primary, success, info, warning, and danger type of Radio Button.
14
+
The background and border color of the radio button can be customized using custom classes to create primary, success, info, warning, and danger variants.
This section demonstrates the strongly typed extension support in Radio Button. The view that can bind with any model is called as strongly typed view. You can bind any class as model to view. You can access model properties on that view. You can use data associated with model to render the component.
17
+
This section demonstrates strongly typed view support with the RadioButton component. A strongly typed view binds to a model class, allowing access to its properties and rendering the component based on that data. In this example, the component is placed inside an EditForm and uses DataAnnotationsValidator for validation. The Name property groups the radio buttons so only one option can be selected, and @bind-Checked binds the model property to the selected Value.
18
18
19
-
In this sample, first check the male value and click the submit button to post the selected value in the Radio Button. When female value is checked, validation error message will be shown below the Radio Button.
19
+
In this sample, selecting Female triggers a validation error message below the radio button group because the Range attribute is configured to allow only the value "male". This demonstrates how validation rules on the model control the allowed selection and display validation feedback.
Copy file name to clipboardExpand all lines: blazor/radio-button/how-to/right-to-left.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ documentation: ug
9
9
10
10
# Right-To-Left in Blazor RadioButton Component
11
11
12
-
Radio Button component has RTL support. This can be achieved by setting [EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfInputBase-1.html#Syncfusion_Blazor_Buttons_SfInputBase_1_EnableRtl) as `true`.
12
+
The RadioButton component supports right-to-left (RTL) layout, Enable RTL by setting the[EnableRtl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfInputBase-1.html#Syncfusion_Blazor_Buttons_SfInputBase_1_EnableRtl) as `true`.
13
13
14
-
The following example illustrates how to enable right-to-left support in Radio Button component.
14
+
The following example illustrates enabling right-to-left support in the RadioButton component. RTL can also be configured globally for all Syncfusion components during service registration.
15
15
16
16
```cshtml
17
17
@using Syncfusion.Blazor.Buttons
@@ -24,4 +24,4 @@ The following example illustrates how to enable right-to-left support in Radio B
24
24
25
25
```
26
26
27
-

27
+

Copy file name to clipboardExpand all lines: blazor/radio-button/how-to/set-the-disabled-state.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Set the disabled state in Blazor RadioButton Component
11
11
12
-
Radio Button component can be enabled/disabled by giving[Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfInputBase-1.html#Syncfusion_Blazor_Buttons_SfInputBase_1_Disabled) property. To disable Radio Button component, the `Disabled` property can be set as `true`.
12
+
The RadioButton component can be enabled/disabled by setting[Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfInputBase-1.html#Syncfusion_Blazor_Buttons_SfInputBase_1_Disabled) property. To disable Radio Button component, the `Disabled` property can be set as `true`.
13
13
14
14
```cshtml
15
15
@using Syncfusion.Blazor.Buttons
@@ -24,4 +24,4 @@ Radio Button component can be enabled/disabled by giving [Disabled](https://help
24
24
25
25
```
26
26
27
-

27
+

0 commit comments