We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10ad7af commit 43ef015Copy full SHA for 43ef015
packages/core/src/components/tag/tag.tsx
@@ -135,7 +135,12 @@ export const Tag: React.FC<TagProps> = React.forwardRef((props, ref) => {
135
);
136
137
return (
138
- <span {...removeNonHTMLProps(htmlProps)} {...interactiveProps} className={tagClasses}>
+ <span
139
+ {...removeNonHTMLProps(htmlProps)}
140
+ {...interactiveProps}
141
+ className={tagClasses}
142
+ role={isInteractive ? "button" : undefined}
143
+ >
144
<Icon icon={icon} />
145
{!isReactNodeEmpty(children) && (
146
<Text className={Classes.FILL} ellipsize={!multiline} tagName="span" title={htmlTitle}>
0 commit comments