Skip to content

Commit

Permalink
Merge pull request #30 from tilde-nlp/bugfix/72119
Browse files Browse the repository at this point in the history
Widget accessiblity improvements #72270 #72271 #72276
  • Loading branch information
davisrtilde authored Aug 8, 2024
2 parents 94464d9 + 8351429 commit 839886b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/prod-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
.mycolor {
color: cornflowerblue;
color: #2468E5;
}
.notranslate, [translate="no"], [lang="xxx"]{
color:crimson;
Expand Down
1 change: 0 additions & 1 deletion src/js/ui/LanguageMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export class LanguageMenu implements ILanguageSelect {
this.uiLocalization.subscribe({
next: () => {
optionText.textContent = getLanguageName(item.langCode, this.pluginOptions, this.uiLocalization)
option.title = optionText.textContent
if (this.pluginOptions.ui.showLanguagesInNativeLanguage) {
optionText.setAttribute('lang', item.langCode)
}
Expand Down
4 changes: 2 additions & 2 deletions src/style/languageMenu.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
$itemSelectedBackground: white;
$itemSelectedColor: cornflowerblue;
$itemSelectedColor: #2468E5;

$itemHoveredBackground: rgb(238, 238, 238);
// $itemHoveredColor: white;

$machineTranslatedIconColor: $itemSelectedColor;

$languageWidth: 150px;
$languageWidth: 250px;
$itemHeight:45px;

.website-translator {
Expand Down

0 comments on commit 839886b

Please sign in to comment.