bigbite / themer

GNU General Public License v2.0
2 stars 0 forks source link

Radius not an option #113

Open jonnywatersbb opened 1 week ago

jonnywatersbb commented 1 week ago

In the site editor tools, it's possible to add a border radius to blocks within Border and shadow:

Screenshot 2024-10-02 at 09 46 09

Examples being button, cover, columns etc

In themer there doesn't seem to be an option to do this:

Screenshot 2024-10-02 at 09 46 32
thatisrich commented 1 week ago

I've made a start looking at this issue and have a little demo which shows the presence of the border radius option, however it's got quite a few bugs to iron out.

I could not find a core component which tackles the border radius so have started creating a custom one, utilising the border radius options found in the Styles Options documentation and following the existing layouts.

In the demo you can see the option for a linked radius value and unlinked values for each corner. This mimics the approach to border radius in the editor.

NOTE I have used the in progress block-preview branch as the base for this to ensure it's future-proof, but have also been testing it with the Code display, seen here