Skip to content

Remove incorrect dashicon and unnecessary label from the Shortcode block #6001

Closed

Description

Issue Overview

This is just one of my many requirements for the Shortcode block.
It is the most easily implementable.

The shortcode block is currently displayed with a label consisting of the code-editor dashicon SVG and a text label of "Shortcode", followed by a textarea field into which the user types the shortcode / shortcodes to be expanded.

  • The dashicon is the incorrect icon - the block itself uses shortcode
  • The label is unnecessary - taking up a lot of space

I suggest that whole label section is removed.

Steps to Reproduce (for bugs)

  1. Insert a Shortcode block.
  2. Notice that the dashicon in the label shows </> where the Block's icon is [/]
  3. Question the need for the text label "Shortcode"

Expected Behavior

More room to type the shortcode or shortcodes.

Current Behavior

Incorrect icon, unnecessary label.

Possible Solution

Remove the label.

Screenshots / Video

image

Related Issues and/or PRs

Further requirements on the shortcode block will be raised.
I have already raised #5123 and #4456.

Todos

  • Tests
  • Documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] ShortcodesRelated to shortcode functionality[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions