Skip to content

Commit 5295b89

Browse files
authored
Merge pull request #1384 from katlich112358/Focus-Styling-for-Language-Buttons
Added CSS styling for Language button focus state
2 parents 4dccc99 + 9b26c92 commit 5295b89

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/assets/css/main.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ textarea {
157157

158158
#logo_image {
159159
position: absolute;
160-
top: 0;
160+
top: 0;
161161
}
162162

163163
#menu.top_menu,
@@ -324,6 +324,7 @@ textarea {
324324
font-size: 25px;
325325
padding: 5px;
326326
opacity: 0;
327+
cursor: default;
327328
}
328329

329330
#skip-to-content:focus {
@@ -2288,7 +2289,8 @@ p + img {
22882289
}
22892290

22902291
#lockup a:focus {
2291-
outline: 0;
2292+
outline: active;
2293+
outline-style: dotted;
22922294
}
22932295

22942296
.logo {
@@ -2899,6 +2901,13 @@ iframe {
28992901
z-index: 5;
29002902
}
29012903

2904+
#i18n-btn a:focus {
2905+
color: #ed225d;
2906+
outline: active;
2907+
outline-style: dotted;
2908+
}
2909+
2910+
29022911
#i18n-btn a:hover {
29032912
color: #ed225d;
29042913
}

src/templates/layouts/default.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
</head>
2828
<body>
2929

30-
<a href="#content" class="sr-only">{{#i18n "Skip-To-Content"}}{{/i18n}}</a>
3130
{{>i18n}}
3231
<!-- .container -->
3332
<div class="container">

src/templates/pages/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ slug: /
1010
<form id="search" method="get" action="https://www.google.com/search">
1111
<input type="hidden" name="as_sitesearch" value="p5js.org">
1212
<input id="search_button" type="submit" aria-label="Search" class='sr-only'>
13-
<input tabindex="2" id='search_field' type="text" size="20" placeholder="Search p5js.org" name="q">
13+
<input id='search_field' type="text" size="20" placeholder="Search p5js.org" name="q">
1414
<label class="sr-only" for="search_field">Search p5js.org</label>
1515
</form>
1616

0 commit comments

Comments
 (0)