ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-switch is not aligned vertically

Open brodo opened this issue 6 years ago • 3 comments

Describe the bug ui5-switch should be aligned vertically with all other input components

To reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/embed/ui5-webcomponents-l8n3f

Isolated example https://codesandbox.io/embed/ui5-webcomponents-l8n3f

Expected behavior ui5-switch should be at the same level as the other components.

Screenshots Screenshot 2019-12-06 at 09 01 29

Context

  • UI5 Web Components version 1.0.0-rc.5
  • OS/Platform: Mac Os
  • Browser (if relevant): Firefox Developer Edition 72

Affected components ui5-switch

brodo avatar Dec 06 '19 08:12 brodo

Hi, I am also facing the same issue. So, I'd like to know if there is any workaround before this bug be fixed? Thank you.

rkl1994 avatar Apr 21 '20 10:04 rkl1994

Hello @rkl1994 using display="flex" to center the items for example:

<div style="display: flex; align-items: center">
    <ui5-button>Press me</ui5-button>
    <ui5-switch></ui5-switch>
</div>

ilhan007 avatar Apr 21 '20 10:04 ilhan007

Closing the issue, we won't take any actions on the issue as there is a standard way for cantering and aligning elements.

<div style="display: flex; align-items: center">
    <ui5-button>Press me</ui5-button>
    <ui5-switch></ui5-switch>
</div>

ilhan007 avatar Feb 19 '21 11:02 ilhan007