Repository navigation
Shadow: Add UI tools to set custom shadow to a block - #45507
madhusudhand wants to merge 1 commit into
Conversation
|
|
|
Looks good! Despite activating Archeo, and checking out the PR I wasn't able to see the Shadow property. Nice work though. Two parts to this, 1 is the addition of the inline preview, #42919. Can this be built in a way so that it works for every block? The other thing is that the shadow controls themselves need some design. I'll put on my todo list to take a stab at this, but I would imagine they use an itemgroup in the inspector, and actual shadow customization happens in a flyout, just like colors. Because the latter is likely going to be a bit of work on its own, I wonder if it might make sene to extract the preview parts in a separate PR so that it can land sooner? |
|
Nice work @madhusudhand! I think the customisation controls are great. A few questions:
|
|
@jasmussen thanks for the feedback.
Currently shadow is enable only for the button block. Did you try building this code. I will have a check if there are any issues.
Thanks. This is created quickly using the available controls to test and to give a broader picture of functionality in action. UI will adopt the final designs later.
That makes sense. I will be extracting the code to separate PR. |
|
I did build the code, but it's possible my env. was acting up. I can try again. |
Oh, I see! We should also have a way to define an outline shadow. |
|
This is amazing work, thank you. I wonder if it would make more sense to offer a set of defaults to begin with? |
|
Hey @madhusudhand, I got the PR working, nice work! Here's a GIF showing drilling into the Button block, and adding and configuring a shadow: Excellent work. A couple of quick notes:
Based on this PR and the above questions, I added some fresh mockups in this issue. The following is the relevant part, and is inspired by this PR and flow:
What do you think? |
|
@jasmussen Thanks for the inputs. This looks great. I will update the layouts. CC: @scruffian |
|
Closing as it was initial proposal and is no longer required. |




What?
This add the necessary UI tooling to add, edit shadow of a block in global styles.
To be able to test the
supportis enabled for theButtonblock only.NOTE: A preview component is introduced to view the shadow changes in live action. This component doesn't render actual block (such as button) yet. It is just a rectangle with global styles applied. It will be replaced with the implementation of #42919
Testing Instructions
Button-> ShadowsAdd new shadowScreenshots or screencast
Issues
Related issues: #44651