diff --git a/contentcuration/contentcuration/frontend/shared/views/HelpButton.vue b/contentcuration/contentcuration/frontend/shared/views/HelpButton.vue
index 3768b44efb..3e48ab5ca6 100644
--- a/contentcuration/contentcuration/frontend/shared/views/HelpButton.vue
+++ b/contentcuration/contentcuration/frontend/shared/views/HelpButton.vue
@@ -4,18 +4,10 @@
:class="$computedClass(buttonStyle)"
:aria-label="ariaLabel"
@click.stop.prevent="$emit('click')"
- @mouseenter="hovered = true"
- @mouseleave="hovered = false"
>
-
-
@@ -24,19 +16,19 @@
+
+
diff --git a/contentcuration/contentcuration/frontend/shared/views/HelpTooltip.vue b/contentcuration/contentcuration/frontend/shared/views/HelpTooltip.vue
index 0883a22454..0ca37ab584 100644
--- a/contentcuration/contentcuration/frontend/shared/views/HelpTooltip.vue
+++ b/contentcuration/contentcuration/frontend/shared/views/HelpTooltip.vue
@@ -8,15 +8,9 @@
class="icons-wrapper"
:aria-label="text"
>
-
-
+ import HelpIcon from './HelpIcon.vue';
+
export default {
name: 'HelpTooltip',
-
+ components: {
+ HelpIcon,
+ },
props: {
text: {
type: String,
@@ -64,35 +62,15 @@
display: inline-block;
width: 100%;
height: 100%;
- }
-
- .icons-wrapper:hover {
- .icon-full {
- opacity: 1;
+ /* Ensure HelpIcon inherits hover state for its own hover effects */
+ &:hover .help-icon-wrapper {
+ .icon-full {
+ opacity: 1;
+ }
+ .icon-outline {
+ opacity: 0;
+ }
}
-
- .icon-outline {
- opacity: 0;
- }
- }
-
- .icon-outline,
- .icon-full {
- position: absolute;
- top: 50%;
- left: 50%;
-
- /* few extra pixels needed to achieve 16px icon size
- due to extra padding in source svg */
- width: 19.2px;
- height: 19.2px;
- transition: opacity 0.4s ease;
- transform: translate(-50%, -50%);
- }
-
- .icon-full {
- z-index: 1;
- opacity: 0;
}