Esri / Esri/calcite-react

Unexpected margin below Switch component

Open
#435 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
51
Forks
13
PR merge metrics
No merged PRs in 30d

Description

There appears to be 1.55rem of margin added to the bottom of Switches, is this intended? I'm trying to center the switch vertically but it there's that 1.55rem of margin that keeps it from lining up correctly.

![image](https://user-images.githubusercontent.com/50883428/99839304-183ce280-2b30-11eb-8fd3-74629a0a22d4.png)

I tried creating a styled component for the Switch but changing the margin on that only changes the margin on the child checkbox.

The switches in the docs have the same margin below them if you want to [check those out](https://calcite-react.netlify.app/switch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.