Skip to content

Gutenberg border block setting should be working properly. #69094

Open

Description

@viralsampat-multidots

Description

Hello Team,

I have Worked on gutenberg block into the twenty-twenty three theme and found that Block border setting is not working properly as expected.

When we add paragraph to paragraph block and then change "Border Color" from the block setting, Then there is no border px add into the border block setting, But the border is adding to the paragraph. I just changed border color, Not adding border px.

If this is the behaviour that if we will make any change into to border color, Then border will add to the block. Then I think that the px should be change to 1px instead of kept it blank when we change border color.

When we change border size using border range control and set it to 0, And we are test it again and change only border color from border block setting, At that time border px is changing to 1px instead of blank.

So, I think that the border size should be change at very first time when we change only border color, So we can easily seeing that border size.

For better understanding, here I have attached its video:

Thanks,

Step-by-step reproduction instructions

  • Select paragraph block
  • Add any text to paragraph
  • Change border color from block settings
  • Check border size was not changed when we change it color

Expected behaviour

  • WordPress version: WordPress 6.7.1 running
  • Theme: Twenty Twenty Three
  • Browser: Google Chrome, Version 132.0.6834.160 (Official Build) (arm64)
  • Device: MacBook Air M1
  • OS: macOS 15.3 (24D60)
  • Gutenberg plugin: Version Version Version 20.2.0

Actual behaviour

The actual behaviour is when we trying to change border color at that time border size should be changed to 1 px instead of blank.

Screenshots or screen recording (optional)

Screen.Recording.2025-02-07.at.3.36.35.PM.mp4

WordPress information

  • WordPress version: WordPress 6.7.1 running
  • Gutenberg version: Version Version Version 20.2.0
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? No

Device information

  • Device: MacBook Air M1
  • Operating system: macOS 15.3 (24D60)
  • WordPress app version: WordPress 6.7.1 running

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    and removed
    Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
    on Feb 7, 2025
  2. added
    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json
    on Feb 8, 2025
  3. hbhalodia commented on Feb 10, 2025

    @hbhalodia
    Contributor

    Hi Team, I have raised the PR to fix the mentioned issue - #69112

    Thank You,

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

Metadata

Metadata

Assignees

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions