Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 783b19a

Browse files
committed
Fix toggler accessibility and select paddings
Signed-off-by: Olga Bulat <[email protected]>
1 parent 611a1dc commit 783b19a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python_docs_theme/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ <h3>{{ _('Navigation') }}</h3>
8080
{{ super() }}
8181
<div class="mobile-nav">
8282
<input type="checkbox" id="menuToggler" class="toggler__input"
83-
aria-controls="navigation" aria-pressed="false" aria-expanded="false" />
84-
<label for="menuToggler" class="toggler__label" role="button" aria-label="{{ _('Menu')}}">
83+
aria-controls="navigation" aria-pressed="false" aria-expanded="false" role="button" aria-label="{{ _('Menu')}}" />
84+
<label for="menuToggler" class="toggler__label">
8585
<span></span>
8686
</label>
8787
<nav class="nav-content" role="navigation">

python_docs_theme/static/pydoctheme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ div.related ~ div.related {
3737

3838
.version_switcher_placeholder,
3939
.language_switcher_placeholder {
40-
padding-left: 3px;
40+
padding-left: 5px;
4141
background-color: white;
4242
}
4343

0 commit comments

Comments
 (0)