Add list of goals icons to component

- When we click on an icon we add a new tag with the Goal related to the input or
we remove the tag when that label already exists.

- Manage goals icons status when add or remove related targets:
Whenever there is a tag related to Goal, either the Goal itself or a Target, the icon
will be "checked".
When there is no related Goal or Target it will no longer be marked as checked.
This commit is contained in:
taitus
2021-01-18 12:17:29 +01:00
parent e4e4e28ce6
commit 23f72d939a
9 changed files with 121 additions and 2 deletions

View File

@@ -68,6 +68,8 @@ $color-alert: #a94442;
$pdf-primary: #0300ff;
$pdf-secondary: #ff9e00;
$outline-focus: 3px solid #ffbf47;
// 2. Foundation settings overrides
// ---------------------------------

View File

@@ -77,7 +77,7 @@ a {
&:focus {
color: $link-hover;
outline: 3px solid #ffbf47;
outline: $outline-focus;
}
}
@@ -1075,7 +1075,7 @@ footer {
width: auto;
&:focus {
outline: 3px solid #ffbf47;
outline: $outline-focus;
}
}
}

View File

@@ -9,4 +9,26 @@
}
}
}
> ul {
list-style: none;
margin-bottom: 0;
margin-left: 0;
li {
display: inline-block;
&[aria-checked=true] img {
opacity: 0.15;
}
&:focus {
outline: $outline-focus;
}
}
}
.input-section {
margin-top: $line-height / 2;
}
}