0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 10:37:43 +08:00
discourse/frontend
chapoi a76d4bb135
FEATURE: Add a small text option to the composer text sizes toolbar button (#42020)
Previously, the composer's "Headings" toolbar button only offered
heading levels and a paragraph reset, with no built-in way to insert
smaller text.

This change renames the button to "Text sizes" and adds a "Small" option
that wraps the selection in `<small>` tags. It toggles on/off and
highlights the active state in both the plain textarea and rich
(ProseMirror) editors, reusing the existing `<small>` inline HTML
support.

<img width="582" height="582" alt="CleanShot 2026-07-24 at 14 15 57@2x"
src="https://github.com/user-attachments/assets/9e76c1d3-bea9-4f3c-a159-7e27ac725217"
/>

It re-uses the same icon as `paragraph` does, for lack of a better
option. The differentiating element is that paragraph doesn't have an
active highlight and small does:
<img width="1552" height="504" alt="CleanShot 2026-07-24 at 14 16 49@2x"
src="https://github.com/user-attachments/assets/981fc522-5c64-42d8-acba-f7dc2ee6d808"
/>

---------

Co-authored-by: Renato Atilio <renato@discourse.org>
2026-08-03 11:28:59 +02:00
..
asset-processor DEV: Derive styleguide code samples from the rendered example (#42100) 2026-07-29 13:48:35 -03:00
deprecation-silencer
discourse FEATURE: Add a small text option to the composer text sizes toolbar button (#42020) 2026-08-03 11:28:59 +02:00
discourse-i18n DEV: add typescript support for core, themes and plugins (#41478) 2026-07-08 12:57:18 +01:00
discourse-markdown-it DEV: Bump eslint/lint-configs, and correct violations (#41321) 2026-07-01 10:39:57 +01:00
discourse-types DEV: Use bundler module resolution for @discourse/types consumers (#41661) 2026-07-13 21:43:39 -03:00
pretty-text FIX: clean up onebox loading decorations on fetch failure (#39277) 2026-07-23 19:50:41 -03:00
.npmrc
polyfills.js