Skip to content

Commit

Permalink
Merge pull request #127 from personalizedrefrigerator/main
Browse files Browse the repository at this point in the history
Fix #124: Show "text color" option in rich text editor toolbar
  • Loading branch information
andrejilderda authored May 12, 2024
2 parents 81fd383 + 31f1d15 commit 55488b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-cats-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"joplin-plugin-macos-theme": patch
---

fix: show "text color" option in rich text editor toolbar (thanks to @personalizedrefrigerator)
18 changes: 14 additions & 4 deletions src/scss/components/_components.editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -632,20 +632,25 @@
padding: 0;

&:focus-within:hover {
button:focus:not(:hover) {
@include dropdownItemDefault();
&, .tox-split-button {
&:not(:hover) {
@include dropdownItemDefault();
}
}
}

button {
button, .tox-split-button {
@include dropdownItem();

justify-content: flex-start;
flex: 1;
text-align: left;
width: calc(100% - 2rem);
width: 100%;
box-sizing: border-box;

&:after {
padding: 0.5rem 0;

color: inherit;
content: attr(aria-label);
text-align: left;
Expand All @@ -658,6 +663,11 @@
}
}

// color menu -- more selectors for extra specificity
.tox .tox-menu.tox-swatches-menu {
@include dropdownBackground();
}

// table menu
.tox-menu {
@include dropdownBackground();
Expand Down

0 comments on commit 55488b1

Please sign in to comment.