From 7657c4b82ce43838dc8274da456b44c3004bfdce Mon Sep 17 00:00:00 2001 From: Jaime Iniesta Date: Thu, 19 Mar 2020 11:42:06 +0100 Subject: [PATCH] Added back aria-label to search input (#1517) * update development guides on how to launch the local servers * brings back aria-label to search form as form elements must have labels --- docs/customization.md | 12 ++++++++---- src/partials/search.html | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/customization.md b/docs/customization.md index 2782e96a6..1ef77232b 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -201,15 +201,19 @@ npm install ### Development mode -The development server can be started with: +Start the Webpack watchdog with: ``` sh npm start ``` -This will also start the MkDocs development server which will monitor changes -on assets, templates and documentation. Point your browser to -[localhost:8000][190] and you should see this documentation in front of you. +Then, in a second session, start the MkDocs server with: + +```sh +mkdocs serve +``` + +Point your browser to [localhost:8000][9] and you should see this documentation in front of you. !!! warning "Automatically generated files" diff --git a/src/partials/search.html b/src/partials/search.html index d139a3033..3ef8f6816 100644 --- a/src/partials/search.html +++ b/src/partials/search.html @@ -31,6 +31,7 @@ type="text" class="md-search__input" name="query" + aria-label="{{ lang.t('search.placeholder') }}" placeholder="{{ lang.t('search.placeholder') }}" autocapitalize="off" autocorrect="off"