File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
packages/components/src/components/toolbar Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class KolToolbar implements ToolbarAPI {
3838 } ;
3939
4040 return '_href' in element ? (
41- < KolLinkWcTag { ...element } { ...props } ref = { catchRef } > </ KolLinkWcTag >
41+ < KolLinkWcTag { ...element } { ...props } ref = { catchRef } _role = "button" > </ KolLinkWcTag >
4242 ) : (
4343 < KolButtonWcTag { ...element } { ...props } ref = { catchRef } > </ KolButtonWcTag >
4444 ) ;
Original file line number Diff line number Diff line change 11@use ' ../@shared/mixins' as * ;
22@use ' ../style' as * ;
33@use ' ../tooltip/style.scss' as * ;
4+ @use ' ../button' as * ;
45
56@layer kol-component {
67 .toolbar {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exports[`kol-toolbar should render with _label="Text" _items=[{"_label":"Button"
55 <template shadowrootmode = " open" >
66 <div aria-label = " Text" class = " toolbar" role = " toolbar" >
77 <kol-button-wc _label = " Button" _tabindex = " 0" class = " button kol-toolbar-item normal" ></kol-button-wc >
8- <kol-link-wc _href = " #" _label = " Link" _tabindex = " -1" class = " button kol-toolbar-item normal" ></kol-link-wc >
8+ <kol-link-wc _href = " #" _label = " Link" _role = " button " _tabindex = " -1" class = " button kol-toolbar-item normal" ></kol-link-wc >
99 </div >
1010 </template >
1111</kol-toolbar >
You can’t perform that action at this time.
0 commit comments