Skip to content

Commit 8d5787e

Browse files
authored
Merge pull request #960 from PicchiKevin/improve-accessibility
fix #945 - Improve accessibility
2 parents 5b57544 + 229a63c commit 8d5787e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: src/core/render/tpl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function corner(data) {
2929
*/
3030
export function main(config) {
3131
const aside =
32-
'<button class="sidebar-toggle">' +
32+
'<button class="sidebar-toggle" aria-label="Menu">' +
3333
'<div class="sidebar-toggle-button">' +
3434
'<span></span><span></span><span></span>' +
3535
'</div>' +

Diff for: src/plugins/search/component.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ function style() {
3535
padding: 0 7px;
3636
line-height: 36px;
3737
font-size: 14px;
38+
border: 1px solid transparent;
39+
}
40+
41+
.search input:focus {
42+
box-shadow: 0 0 5px var(--theme-color, #42b983);
43+
border: 1px solid var(--theme-color, #42b983);
3844
}
3945
4046
.search input::-webkit-search-decoration,
@@ -99,7 +105,7 @@ function style() {
99105
function tpl(defaultValue = '') {
100106
const html =
101107
`<div class="input-wrap">
102-
<input type="search" value="${defaultValue}" />
108+
<input type="search" value="${defaultValue}" aria-label="Search text" />
103109
<div class="clear-button">
104110
<svg width="26" height="24">
105111
<circle cx="12" cy="12" r="11" fill="#ccc" />

0 commit comments

Comments
 (0)