Skip to content

Commit 85075f1

Browse files
committed
Fix focus on link button in toolbar
Refs: #7487
1 parent 6943f75 commit 85075f1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/components/src/components/toolbar/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

packages/components/src/components/toolbar/style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@use '../@shared/mixins' as *;
22
@use '../style' as *;
33
@use '../tooltip/style.scss' as *;
4+
@use '../@shared/kol-button-mixin' as *;
5+
6+
@include kol-button-styles('kol-link');
47

58
@layer kol-component {
69
.toolbar {

0 commit comments

Comments
 (0)