Skip to content

Commit 0a1c467

Browse files
committed
a11y: clarity reading options button styling
1 parent 32509b9 commit 0a1c467

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/themes/clean/assets/css/clean.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,14 @@ a[href^="http"] {
579579
background-color: var(--bg-body);
580580
}
581581

582+
#reading-options .btn-background {
583+
min-width: 3rem;
584+
}
585+
582586
.btn-opt {
583-
border: 1px solid #1C304A;
584-
background: #f1f1f1;
587+
background-color: inherit;
588+
color: inherit;
589+
border: 1px solid var(--brand-primary);
585590
}
586591

587592
.dyslexia-friendly{

src/themes/clean/templates/elements/journal/reading.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h2 class="sr-only">{% trans 'Text display options' %}</h2>
33
<div class="btn-group-horizontal">
44
<button
5-
class="btn btn-opt"
5+
class="btn-background"
66
type="button"
77
onclick="resizeText(-1)"
88
aria-label="{% trans 'decrease text size' %}"
@@ -11,7 +11,7 @@ <h2 class="sr-only">{% trans 'Text display options' %}</h2>
1111
<span style="font-size: xx-small">Aa -</span>
1212
</button>
1313
<button
14-
class="btn btn-opt"
14+
class="btn-background"
1515
type="button"
1616
onclick="resizeText(1)"
1717
aria-label="{% trans 'increase text size' %}"
@@ -20,7 +20,7 @@ <h2 class="sr-only">{% trans 'Text display options' %}</h2>
2020
Aa +
2121
</button>
2222
<button
23-
class="btn btn-opt"
23+
class="btn-background"
2424
id="dyslexia-mode"
2525
type="button"
2626
onclick="toggleDyslexia()"

0 commit comments

Comments
 (0)