Skip to content

Commit

Permalink
PRO-6735: Rich text styles toolbar focused state (#4804)
Browse files Browse the repository at this point in the history
  • Loading branch information
myovchev authored Nov 14, 2024
1 parent 96eac29 commit a418765
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Fixes a false positive warning for module not in use for project level submodules (e.g. `widges/module.js`) and dot-folders (e.g. `.DS_Store`).
* Bumped `express-bearer-token` dependency to address a low-severity `npm audit` warning regarding noncompliant cookie names and values. Apostrophe
did not actually use any noncompliant cookie names or values, so there was no vulnerability in Apostrophe.
* Rich text "Styles" toolbar now has visually focused state.

### Adds

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default {
border-radius: var(--a-border-radius);
transition: all 500ms ease;
&:focus-within,
&:hover {
color: var(--a-text-primary);
background-color: var(--a-base-9);
Expand Down
2 changes: 1 addition & 1 deletion modules/@apostrophecms/rich-text-widget/views/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
{% elif data.manager.options.className %}
{% set className = data.manager.options.className %}
{% endif %}
<div data-rich-text{% if className %} class="{{ className }}" {% endif %}>
<div data-rich-text{% if className %} class="{{ className }}"{% endif %}>
{{ data.widget.content | safe }}
</div>

0 comments on commit a418765

Please sign in to comment.