Skip to content
Snippets Groups Projects
Commit f4cee1b2 authored by Olivia206's avatar Olivia206
Browse files

merge

parents 2b3ff984 5f2022e0
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ class Note { ...@@ -44,7 +44,7 @@ class Note {
}); });
} }
a11yDesactivation () { a11yDisabling () {
this.closeWithKeyboard = (event) => { this.closeWithKeyboard = (event) => {
if (event.keyCode === 27 || event.key === 'Escape' || event.key === 'Tab' || event.keyCode === 9) { if (event.keyCode === 27 || event.key === 'Escape' || event.key === 'Tab' || event.keyCode === 9) {
this.deactivateAllNotes(); this.deactivateAllNotes();
...@@ -62,7 +62,7 @@ class Note { ...@@ -62,7 +62,7 @@ class Note {
document.addEventListener('click', this.closeWithClick); document.addEventListener('click', this.closeWithClick);
} }
removeA11yDesactivation() { removeA11yDisabling () {
window.removeEventListener('keydown', this.closeWithKeyboard); window.removeEventListener('keydown', this.closeWithKeyboard);
document.removeEventListener('click', this.closeWithClick); document.removeEventListener('click', this.closeWithClick);
} }
......
.note .note
margin-left: pxToRem($space-unit)
display: inline-block display: inline-block
&__call &__call
@include meta @include meta
background: $color-background-alt background: var(--color-background-alt)
border-radius: 4px border-radius: 4px
cursor: pointer cursor: pointer
display: inline display: inline
...@@ -17,8 +16,8 @@ ...@@ -17,8 +16,8 @@
text-align: center text-align: center
user-select: none user-select: none
&__content &__content
background: $color-text background: var(--color-text)
color: $color-background color: var(--color-background)
display: none display: none
max-width: 100vw max-width: 100vw
padding: $spacing-3 padding: $spacing-3
...@@ -28,8 +27,8 @@ ...@@ -28,8 +27,8 @@
@include small @include small
&--active &--active
.note__call .note__call
background: $color-text background: var(--color-text)
color: $color-background color: var(--color-background)
border-bottom-left-radius: 0 border-bottom-left-radius: 0
border-bottom-right-radius: 0 border-bottom-right-radius: 0
.note__content .note__content
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment