File tree Expand file tree Collapse file tree 2 files changed +27
-17
lines changed
examples/kendo-react-project-tracker-app/src/components Expand file tree Collapse file tree 2 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -22,33 +22,39 @@ export default function AppBarComponent() {
2222 return (
2323 < AppBar positionMode = "sticky" className = "bg-surface-alt !p-4" themeColor = 'inherit' >
2424 < AppBarSection className = "grow gap-4" >
25- < a href = "#" onClick = { ( e ) => { e . preventDefault ( ) ; navigate ( '/' ) ; } } >
26- < img src = { logo } alt = "Logo" className = "hidden md:flex" />
27- < img src = { compactLogo } alt = "Logo" className = "flex md:hidden" />
28- </ a >
25+ < div role = "banner" >
26+ < a href = "#" onClick = { ( e ) => { e . preventDefault ( ) ; navigate ( '/' ) ; } } >
27+ < img src = { logo } alt = "Logo" className = "hidden md:flex" />
28+ < img src = { compactLogo } alt = "Logo" className = "flex md:hidden" />
29+ </ a >
30+ </ div >
2931 </ AppBarSection >
3032
3133 < AppBarSection className = "grow md:grow-0 !hidden sm:!inline-flex" >
32- < TextBox prefix = { ( ) => (
33- < >
34- < InputPrefix >
35- < SvgIcon icon = { searchIcon } />
36- </ InputPrefix >
37- < InputSeparator />
38- </ >
39- ) }
40- placeholder = "Search"
41- fillMode = "solid"
42- className = "!w-75"
34+ < div role = "search" >
35+ < TextBox prefix = { ( ) => (
36+ < >
37+ < InputPrefix >
38+ < SvgIcon icon = { searchIcon } />
39+ </ InputPrefix >
40+ < InputSeparator />
41+ </ >
42+ ) }
43+ placeholder = "Search"
44+ fillMode = "solid"
45+ className = "!w-75"
4346 />
47+ </ div >
4448 </ AppBarSection >
4549
4650 < AppBarSection className = "sm:!hidden" >
47- < Button fillMode = "flat" svgIcon = { searchIcon } title = "Search button" />
51+ < div role = "search" >
52+ < Button fillMode = "flat" svgIcon = { searchIcon } title = "Search button" />
53+ </ div >
4854 </ AppBarSection >
4955
5056 < AppBarSection className = "gap-2" >
51- < div onClick = { ( ) => setShow ( ! show ) } ref = { anchor } >
57+ < div onClick = { ( ) => setShow ( ! show ) } ref = { anchor } role = "contentinfo" >
5258 < Avatar rounded = "full" type = "text" themeColor = "primary" className = "cursor-pointer" > JP</ Avatar >
5359 </ div >
5460 < Popover
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ const DrawerComponent: React.FC<DrawerComponentProps> = ({ children }) => {
3131
3232 const selected = setSelectedItem ( location . pathname ) ;
3333
34+ if ( document . getElementsByClassName ( 'k-drawer' ) [ 0 ] ) {
35+ document . getElementsByClassName ( 'k-drawer' ) [ 0 ] . setAttribute ( 'role' , 'navigation' ) ;
36+ document . getElementsByClassName ( 'k-drawer' ) [ 0 ] . setAttribute ( 'title' , 'Drawer title' ) ;
37+ }
3438 return (
3539 < Drawer
3640 expanded = { true }
You can’t perform that action at this time.
0 commit comments