mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
make poll questions accessible for keyboard #1966
This commit is contained in:
parent
4ff20bba60
commit
8d8e314787
@ -1254,9 +1254,12 @@
|
||||
.cp-poll-switch {
|
||||
button.btn {
|
||||
border-radius: 0;
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
&:focus-visible {
|
||||
outline: @variables_focus_style;
|
||||
border-radius: @variables_radius;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1368,6 +1371,13 @@
|
||||
background: @cp_form-poll-maybe;
|
||||
.cp-maybe { display: inline; }
|
||||
}
|
||||
&:focus-visible {
|
||||
outline: @variables_focus_style;
|
||||
border-radius: @variables_radius;
|
||||
}
|
||||
&:last-of-type {
|
||||
margin-right: 0.2rem;
|
||||
}
|
||||
}
|
||||
div.cp-form-poll-choice {
|
||||
cursor: pointer;
|
||||
|
||||
@ -2590,8 +2590,8 @@ define([
|
||||
var $c = $(cell);
|
||||
$c.data('option', data);
|
||||
var val = 0;
|
||||
$c.attr('data-value', val);
|
||||
$c.click(function () {
|
||||
$c.attr('data-value', val).attr('tabindex', '0');
|
||||
Util.onClickEnter($c, function () {
|
||||
if (disabled) { return; }
|
||||
val = (val+1)%3;
|
||||
$c.attr('data-value', val);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user