storyblok / storyblok-design-system

Design System for the Storyblok UI.
https://blok.ink
MIT License
89 stars 18 forks source link

Breaking style when using `SbTextField` and `prefix` #524

Open silasjoisten opened 5 months ago

silasjoisten commented 5 months ago

Hello Storyblok Team,

First of all, I want to commend you on creating such an excellent developer experience. The design system makes developing plugins incredibly straightforward, and the components look fantastic right out of the box.

However, I've encountered an issue with the text field component. The text appears very small, which causes alignment issues, particularly when a prefix is used.

CleanShot 2024-06-06 at 09 35 37


Expected Behavior

The prefix element should always have the same height as the text field to ensure proper alignment and visual consistency.

Current Behavior

The prefix element is misaligned with the text field, likely due to the small text size within the field itself. This misalignment affects the visual appearance and usability of the component.

Steps to Reproduce

  1. Clone the repository from: Sensiolabs Storyblok Plugins Repository.
  2. Navigate to the SEO plugin component: packages/seo-plugin/src/components/TwitterMetadataForm.vue.
  3. Deploy the plugin and observe the text field with a prefix.

Here is the specific component where the issue can be observed: TwitterMetadataForm.vue

Thank you for looking into this issue. Your support and attention to detail are much appreciated.