0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 13:59:03 +08:00
discourse/spec/system/composer
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
..
category_templates_spec.rb DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
default_to_subcategory_spec.rb UX: Composer redesign (#41781) 2026-07-20 17:56:48 +10:00
dont_feed_the_trolls_popup_spec.rb DEV: Fix (again) composer body test flakes (#39578) 2026-04-27 12:48:17 +02:00
drafts_spec.rb FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
enqueued_post_draft_spec.rb
form_template_tag_chooser_spec.rb FIX: Form template tag-chooser dropping uppercase tag selections (#40379) 2026-05-29 07:52:11 +02:00
post_validation_spec.rb
prosemirror_autocomplete_spec.rb FIX: Don't lose focus when pressing key up and -down in composer emoji picker (#40052) 2026-06-05 11:05:11 -05:00
prosemirror_code_spec.rb DEV: Restore two prosemirror specs (#39637) 2026-04-29 15:34:19 +02:00
prosemirror_container_spec.rb DEV: Remove rich_editor site setting (#41873) 2026-07-23 19:49:20 -03:00
prosemirror_images_spec.rb UX: Dismiss alt text input when clicking image instead of opening lightbox (#40777) 2026-06-11 08:05:05 -03:00
prosemirror_input_rules_spec.rb UX: Disable typographer replacements in the rich editor (#40550) 2026-06-09 16:58:11 -03:00
prosemirror_keymap_spec.rb DEV: Add SystemHelpers::LINE_START_KEY (#39498) 2026-04-23 20:48:54 +02:00
prosemirror_links_spec.rb FIX: preserve selection formatting in link-insertion modal (#39374) 2026-05-20 11:22:35 +02:00
prosemirror_onebox_spec.rb FIX: clean up onebox loading decorations on fetch failure (#39277) 2026-07-23 19:50:41 -03:00
prosemirror_onebox_toolbar_spec.rb
prosemirror_pasting_spec.rb DEV: to-markdown prosemirror HTML parsing (#35563) 2026-05-29 18:14:32 -03:00
prosemirror_quotes_spec.rb DEV: Restore and fix prosemirror specs (#39502) 2026-04-24 15:11:45 +02:00
prosemirror_toolbar_spec.rb FEATURE: Add a small text option to the composer text sizes toolbar button (#42020) 2026-08-03 11:28:59 +02:00
prosemirror_uploads_spec.rb UX: better rich editor placeholder for non-image and image uploads (#39102) 2026-05-20 16:48:51 -03:00
prosemirror_watched_words_spec.rb
prosemirror_wrap_spec.rb
redesign_spec.rb UX: UC:composer redesign > hide toolbar toggle (#42159) 2026-07-30 14:24:05 +02:00
review_media_unless_trust_level_spec.rb
template_validation_spec.rb