Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
</span>
<!-- File name -->
- <span>{{ displayName }}</span>
+ <span class="files-list__row-name-text">{{ displayName }}</span>
</a>
</td>
active(active) {
if (active === false) {
this.resetState()
+
+ // When the row is not active anymore
+ // remove the tabindex from the row
+ this.$el.parentNode.style.display = 'none'
+ return
}
+ // Restore default tabindex
+ this.$el.parentNode.style.removeProperty('display')
},
/**
* When the source changes, reset the preview
// Fill cell height and width
width: 100%;
height: 100%;
+
+ // Keyboard indicator a11y
+ &:focus .files-list__row-name-text,
+ &:focus-visible .files-list__row-name-text {
+ outline: 2px solid var(--color-main-text) !important;
+ border-radius: 20px;
+ }
+ }
+
+ .files-list__row-name-text {
+ // Make some space for the outline
+ padding: 5px 10px;
+ margin-left: -10px;
}
}