Codeinwp / otter-blocks

Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter.
https://wordpress.org/plugins/otter-blocks/
GNU General Public License v3.0
133 stars 33 forks source link

Vertical Style for Tabs block #1503

Closed Soare-Robert-Daniel closed 2 weeks ago

Soare-Robert-Daniel commented 1 year ago

What problem does this address?

Re-iterate the vertical style implementation of the Tabs block.

The primary issue was dealing with the spacing issues (in the title tab) consistently in both the backend and frontend. The expanding not was equal when padding and font-size have big values, and the word is long.

What is your proposed solution?

Ideally, the tab header should nicely auto-expand up to a limit of 30% from the container's width.

Soare-Robert-Daniel commented 1 year ago

@mghenciu I thought we better add a fixed value for the width of tabs in vertical mode. It can be 30% as default. Do you think we need responsive values? Different widths for each device.

mghenciu commented 1 year ago

This depends a lot on the context, where the Tabs are used:

What I would recommend, is to check the Elementor approach (code wise and UIX wise), as they have a default value which works pretty ok. And if the conclusion is 30%, we can stick to that - and maybe at some point in future, change it to a manual slider.

AndreeaCristinaRadacina commented 1 year ago

@Soare-Robert-Daniel, Seems that we don't have any build or PRs here. Is this still in progress?

I received the doc request, and this is why I was wondering.

Soare-Robert-Daniel commented 1 year ago

@AndreeaCristinaRadacina I think the label was put in the idea that it will need docs when it is done. The issue is not currently started.