Commit 6503463a by Jonathan Piacenti

Make button-action links into proper buttons.

parent 62533285
...@@ -355,10 +355,16 @@ ...@@ -355,10 +355,16 @@
margin-left: 2%; margin-left: 2%;
} }
.xblock--drag-and-drop .keyboard-help-button, .xblock--drag-and-drop .link-button {
.xblock--drag-and-drop .reset-button { padding: 0;
margin: 0;
cursor: pointer; cursor: pointer;
color: #2d74b3; color: #2d74b3;
font-weight: normal;
font-size: 12pt;
background: none;
box-shadow: none;
border: none;
} }
.xblock--drag-and-drop .reset-button { .xblock--drag-and-drop .reset-button {
...@@ -366,6 +372,24 @@ ...@@ -366,6 +372,24 @@
margin-top: 3px; margin-top: 3px;
} }
.xblock--drag-and-drop .link-button:focus {
background: none;
box-shadow: none;
border: none;
}
.xblock--drag-and-drop .link-button:active {
background: none;
box-shadow: none;
border: none;
}
.xblock--drag-and-drop .link-button:hover {
background: none;
box-shadow: none;
border: none;
}
/* Make sure screen-reader content is hidden in the workbench: */ /* Make sure screen-reader content is hidden in the workbench: */
.xblock--drag-and-drop .sr { .xblock--drag-and-drop .sr {
border: 0; border: 0;
......
...@@ -174,8 +174,8 @@ ...@@ -174,8 +174,8 @@
return ( return (
h('section.feedback', properties, [ h('section.feedback', properties, [
h( h(
'a.reset-button', 'button.reset-button.link-button',
{ style: { display: reset_button_display }, attributes: { tabindex: 0 }}, { style: { display: reset_button_display }, attributes: { tabindex: 0 }, 'aria-live': 'off'},
gettext('Reset problem') gettext('Reset problem')
), ),
h('h3.title1', { style: { display: feedback_display } }, gettext('Feedback')), h('h3.title1', { style: { display: feedback_display } }, gettext('Feedback')),
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
var dialog_style = {}; var dialog_style = {};
return ( return (
h('section.keyboard-help', [ h('section.keyboard-help', [
h('a.keyboard-help-button', { attributes: { tabindex: 0 } }, gettext('Keyboard Help')), h('button.keyboard-help-button.link-button', { attributes: { tabindex: 0 } }, gettext('Keyboard Help')),
h('div.keyboard-help-dialog', [ h('div.keyboard-help-dialog', [
h('div.modal-window-overlay'), h('div.modal-window-overlay'),
h('div.modal-window', { attributes: dialog_attributes, style: dialog_style }, [ h('div.modal-window', { attributes: dialog_attributes, style: dialog_style }, [
......
...@@ -82,8 +82,7 @@ ...@@ -82,8 +82,7 @@
font-size: 18pt; font-size: 18pt;
} }
.themed-xblock.xblock--drag-and-drop .keyboard-help-button, .themed-xblock.xblock--drag-and-drop .link-button {
.themed-xblock.xblock--drag-and-drop .reset-button {
cursor: pointer; cursor: pointer;
color: #3384ca; color: #3384ca;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment