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/appbar/accessibility.md
+1-1Lines changed: 1 addition & 1 deletion
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 AppBar Component
11
11
12
-
The [Blazor AppBar](https://www.syncfusion.com/blazor-components/blazor-appbar) 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 AppBar[Blazor AppBar](https://www.syncfusion.com/blazor-components/blazor-appbar) component is developed to support accessibility and aligns with globally recognized standards for inclusive user interfaces. It follows guidelines from[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.
13
13
14
14
The accessibility compliance for the Blazor AppBar component is outlined below.
Copy file name to clipboardExpand all lines: blazor/appbar/design.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ documentation: ug
9
9
10
10
# Design User Interface with Blazor AppBar Component
11
11
12
-
## Spacer
12
+
## AppBarSpacer
13
13
14
-
[AppBarSpacer](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.AppBarSpacer.html)is used to provide spacing between the AppBar contents which gives additional space to the content layout.
14
+
[AppBarSpacer](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.AppBarSpacer.html) is used to introduce flexible spacing between items within the AppBar. It is particularly useful for pushing content to the left or right, or for creating balanced layouts.
15
15
16
-
The following example depicts the code to provide spacing between the home and pan buttons in the AppBar:
16
+
The following example demonstrates how to use `AppBarSpacer`to provide dynamic spacing between buttons:
17
17
18
18
```cshtml
19
19
@using Syncfusion.Blazor.Navigations
@@ -33,11 +33,11 @@ The following example depicts the code to provide spacing between the home and p
33
33

[AppBarSeparator](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.AppBarSeparator.html)shows a vertical line to visually group or separate the AppBar contents.
38
+
[AppBarSeparator](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.AppBarSeparator.html)visually divides AppBar contents with a vertical line. This is useful for grouping related actions or types of navigation items.
39
39
40
-
The following example depicts the code to provide a vertical line between a group of buttons in the AppBar.
40
+
The following example shows how to use `AppBarSeparator` to visually group action buttons:
41
41
42
42
```cshtml
43
43
@using Syncfusion.Blazor.Navigations
@@ -70,9 +70,10 @@ The following example depicts the code to provide a vertical line between a grou
70
70
71
71

72
72
73
-
## Media Query
73
+
## Responsive AppBar with Media Queries
74
74
75
-
Media Query is used to adjusting the AppBar for different screen sizes. Resize the screen to observe the responsive layout of the AppBar.
75
+
CSS media queries can be used to create responsive layouts, allowing the AppBar to remain functional and visually consistent across both desktop and mobile devices.
76
+
The following example demonstrates how CSS media queries can adjust the AppBar's layout to wrap its content and resize for smaller screens:
76
77
77
78
```cshtml
78
79
@using Syncfusion.Blazor.Navigations
@@ -116,9 +117,9 @@ Media Query is used to adjusting the AppBar for different screen sizes. Resize t
116
117
117
118

**SfMenu**component can be rendered as a child content of AppBar. You can inherit the AppBar component styles by setting CSS class as `e-inherit` to SfMenu component.
122
+
**SfMenu** can be rendered as a child of the `SfAppBar` to create complex navigation structures directly within the application bar. By setting `CssClass="e-inherit"` on the `SfMenu`, it adopts the AppBar's styling.
122
123
123
124
```cshtml
124
125
@using Syncfusion.Blazor.Navigations
@@ -176,7 +177,7 @@ Media Query is used to adjusting the AppBar for different screen sizes. Resize t
176
177

## Designing AppBar with Buttons and Dropdown Buttons
180
181
181
182
**SfButton** and **SfDropDownButton** component can be rendered as a child content of AppBar. You can inherit the AppBar component styles by setting CSS class as `e-inherit` to SfButton and SfDropDownButton component.
182
183
@@ -208,8 +209,7 @@ Media Query is used to adjusting the AppBar for different screen sizes. Resize t
208
209
}
209
210
</style>
210
211
```
211
-
212
-

212
+

Copy file name to clipboardExpand all lines: blazor/appbar/position.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,15 @@ documentation: ug
9
9
10
10
# Positioning in Blazor AppBar Component
11
11
12
-
The position of the AppBar can be set using the [Position](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_Position) and [IsSticky](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_IsSticky) property. The AppBar provides the following options for setting its position:
12
+
The AppBar component offers flexible control over its placement and behavior within your application's layout. You can configure its position and whether it remains visible during scrolling using the [Position](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_Position) and [IsSticky](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_IsSticky) property. The AppBar provides the following options for setting its position:
13
13
14
14
* Top AppBar
15
15
* Bottom AppBar
16
16
* Sticky AppBar
17
17
18
18
### Top AppBar
19
19
20
-
The top AppBar is the default one in which it positions the AppBar at the top of the content.
20
+
A top AppBar is the most common configuration, positioning the AppBar at the top of its parent container or the viewport. This is the default behavior if the `Position` property is not explicitly set.
21
21
22
22
```cshtml
23
23
@using Syncfusion.Blazor.Navigations
@@ -63,7 +63,7 @@ The top AppBar is the default one in which it positions the AppBar at the top of
63
63
64
64
### Bottom AppBar
65
65
66
-
This position can be set to the AppBar by setting `AppBarPosition.Bottom` to the property [Position](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_Position). The bottom AppBar positions the AppBar at the bottom of the content.
66
+
A bottom AppBar positions the component at the bottom of its parent container. This position can be set to the AppBar by setting `AppBarPosition.Bottom` to the property [Position](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_Position).
67
67
68
68
```cshtml
69
69
@using Syncfusion.Blazor.Navigations
@@ -109,7 +109,7 @@ This position can be set to the AppBar by setting `AppBarPosition.Bottom` to the
109
109
110
110
### Sticky AppBar
111
111
112
-
This position can be set to the AppBar by setting `true` to the property [IsSticky](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_IsSticky). AppBar will be sticky while scrolling the AppBar content.
112
+
A sticky AppBar remains visible at the top of the viewport even when the page content is scrolled.This position can be set to the AppBar by setting `true` to the property [IsSticky](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_IsSticky).
Copy file name to clipboardExpand all lines: blazor/appbar/size-and-color.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ documentation: ug
9
9
10
10
# Size and Color with Blazor AppBar Component
11
11
12
+
The AppBar component offers extensive customization options for its visual `Size` (height) and `Color` scheme.
13
+
12
14
## Size
13
15
14
16
The size of the AppBar can be set using the [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_Mode) property. The available types of the Blazor AppBar are as follows:
@@ -124,7 +126,7 @@ This height mode can be set to the AppBar by setting `AppBarMode.Dense` to the p
124
126

The background and font colors can be set using the [ColorMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_ColorMode) property. The available types of background color for the Blazor AppBar are as follows:
130
132
@@ -135,7 +137,7 @@ The background and font colors can be set using the [ColorMode](https://help.syn
135
137
136
138
### Light AppBar
137
139
138
-
This color mode is the default one in which the AppBar can be displayed with a light background and its corresponding font color.
140
+
This is the default color mode, displaying the AppBar with a light background and corresponding dark text/icon colors for high contrast and readability.
Copy file name to clipboardExpand all lines: blazor/appbar/style-and-appearance.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,13 @@ documentation: ug
9
9
10
10
# Styles and Appearances in Blazor AppBar Component
11
11
12
-
To modify the AppBar appearance, you need to override the default CSS of the AppBar component. Find the list of CSS classes and their corresponding sections in the AppBar component. Also, you have an option to create your own custom theme for the controls using our [Theme Studio](https://blazor.syncfusion.com/themestudio/?theme=material).
12
+
The AppBar component is highly customizable, allowing you to tailor its visual presentation to perfectly fit your application's design language. This document outlines various methods to modify the AppBar's appearance, focusing on overriding default CSS, utilizing custom classes, and applying HTML attributes.
13
+
14
+
For comprehensive custom theming across Syncfusion controls, the [Theme Studio](https://blazor.syncfusion.com/themestudio/?theme=material) offers an intuitive interface to create and manage personalized custom themes efficiently.
15
+
16
+
## Customizing AppBar Elements with CSS Classes
17
+
18
+
The AppBar component includes a set of default CSS classes that can be targeted to customize its appearance. Below is a list of commonly used classes and their respective purposes:
13
19
14
20
|CSS Class | Purpose of Class |
15
21
|-----|----- |
@@ -25,7 +31,9 @@ N> You can change the prominent AppBar height if larger titles, images, or texts
25
31
26
32
## CssClass
27
33
28
-
CssClass is used for AppBar customization based on the custom class. In the example below, the AppBar background and color are customized using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_CssClass) property.
34
+
The `CssClass` property of the `SfAppBar` component assigns a custom CSS class to its root HTML element. This provides a clean way to introduce your own styles or completely override existing ones.
35
+
36
+
In the example below, the AppBar background and color are customized using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfAppBar.html#Syncfusion_Blazor_Navigations_SfAppBar_CssClass) property.
29
37
30
38
```cshtml
31
39
@using Syncfusion.Blazor.Navigations
@@ -50,7 +58,9 @@ CssClass is used for AppBar customization based on the custom class. In the exam
50
58
51
59
## HtmlAttributes
52
60
53
-
It can be used for additional inline attributes by specifying as inline attributes or by specifying `@attributes` directive. In the code example below, the aria-label of the AppBar is customized by specifying as inline attributes.
61
+
The `SfAppBar` component provides the `HtmlAttributes` property (via the `@attributes` directive) to allow you to add any standard HTML attribute directly to the root element (`<div>`) of the AppBar. This is particularly useful for adding ARIA attributes for accessibility, custom `data-` attributes, or IDs.
62
+
63
+
In the example below, an `aria-label` attribute is added to the AppBar to provide an accessible name for screen reader users.
54
64
55
65
```cshtml
56
66
@using Syncfusion.Blazor.Navigations
@@ -62,4 +72,4 @@ It can be used for additional inline attributes by specifying as inline attribut
0 commit comments