wireui / wireui

TallStack UI components
https://v1.wireui.dev
MIT License
1.37k stars 166 forks source link

Double border on inputs (V2) #812

Closed sclause2412 closed 6 months ago

sclause2412 commented 6 months ago

Problem In V1 the input field was the main visible field and all "cosmetic" things where placed inside. This lead to the effect that using additional text / images on right side could result in overlapping the input text with the additional info. In V2 the "visible" input field is just a label and the real input field is inside this label and therefore the overlapping effect cannot happen. However, if the field is in focus there is a second border which looks strange. For some strange reason this effect is not visible in the V2 docs, where it works correctly.

To Reproduce Steps to reproduce the behavior:

  1. Install a new Laravel app
  2. Install Laravel Breeze (with Livewire)
  3. Install WireUI (composer require wireui/wireui 2.x-dev)
  4. Go to welcome.blade.php and add @wireUiScripts before @vite line
  5. Remove everything within the <body> tag and place there just <x-input label="test" />
  6. Update tailwind.config.js as written in WireUI docs
  7. Run php artisan migrate
  8. Run npm run build
  9. Open the website and click into the field

Expected behavior If you open the WireUI docs input page and click there into the input field, there is only the outer border. This should also be the case in the newly created page but there are two borders.

Screenshots or Videos image

Dependencies

Desktop (If applicable, please complete the following information):