Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: Make help toggle tabbable (#3310)

Arun40656c70d15b
diff --git a/src/components/HelpIcon.tsx b/src/components/HelpIcon.tsx
index 8ec09d4e11..5e12154b42 100644
--- a/src/components/HelpIcon.tsx
+++ b/src/components/HelpIcon.tsx
@@ -9,7 +9,13 @@ type HelpIconProps = {
};
export const HelpIcon = (props: HelpIconProps) => (
- <label title={`${props.title} — ?`} className="help-icon">
- <div onClick={props.onClick}>{questionCircle}</div>
- </label>
+ <button
+ className="help-icon"
+ onClick={props.onClick}
+ type="button"
+ title={`${props.title} — ?`}
+ aria-label={props.title}
+ >
+ {questionCircle}
+ </button>
);
diff --git a/src/css/styles.scss b/src/css/styles.scss
index 4fd0382090..2fecd353fb 100644
--- a/src/css/styles.scss
+++ b/src/css/styles.scss
@@ -454,6 +454,14 @@
fill: $oc-gray-6;
bottom: 14px;
width: 1.5rem;
+ padding: 0;
+ margin: 0;
+ background: none;
+ color: var(--icon-fill-color);
+
+ &:hover {
+ background: none;
+ }
:root[dir="ltr"] & {
right: 14px;