[wp-trac] [WordPress Trac] #55974: Theme-specific border color options for Pullquote block

WordPress Trac noreply at wordpress.org
Mon Oct 9 08:00:41 UTC 2023


#55974: Theme-specific border color options for Pullquote block
---------------------------------------------------+----------------------
 Reporter:  kajalgohel                             |       Owner:  (none)
     Type:  defect (bug)                           |      Status:  new
 Priority:  normal                                 |   Milestone:  6.4
Component:  Bundled Theme                          |     Version:  6.0
 Severity:  normal                                 |  Resolution:
 Keywords:  has-patch needs-testing needs-refresh  |     Focuses:  ui, css
---------------------------------------------------+----------------------

Comment (by adamwood):

 Ah that's really helpful, I'll take another look, thanks

 Replying to [comment:34 poena]:
 > In the video, I am doing the following:
 >
 > I select a pullquote block in the block editor and add a border width,
 border color, and border-radius.
 >
 > When I select the first color in the color palette, the palette does not
 actually use the name or label "primary", which I would expect.
 > Visually, the border is applied correctly in the editor.
 >
 > I save the post and view the block on the front. Visually, the border is
 applied correctly.
 > I open the customizer, select the color panel, and change the primary
 color to "custom".
 > I adjust the slider in the color selector, but the border color does not
 change.
 > Now, I am thinking that maybe I need to publish the changes for them to
 work, so I press the publish button in the customizer.
 > Nothing changes; the border stays the same color.
 > I try a few more colors, and then I scroll down the page and see that a
 link color has been changed, so the color has been updated, just not for
 the pullquote border.
 >
 > I close the customizer and return to editing the post.
 > I confirm that the color palette in the block color setting has been
 updated.
 > I hover over the color palette and notice that the color is still not
 labeled "Primary".
 >
 > I open the code editor mode in the block editor and find that the color
 referenced uses a hex code.
 > I close the code editor mode and change the border color to the first
 color in the palette.
 > Then I open the code editor mode again and find that the color
 referenced is "primary".
 >
 >
 > {{{
 > <!-- wp:pullquote
 {"style":{"border":{"radius":"30px","width":"20px"}},"borderColor":"primary"}
 -->
 > <figure class="wp-block-pullquote has-border-color has-primary-border-
 color" style="border-width:20px;border-radius:30px">
 > }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55974#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list