Replies: 1 comment
-
Tagging for visibility, comments and concerns: @tapopov @Raisolution @zdravkov @jivanova @Xizario @VicTachev @nenchef |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quick Overview
The main concept is described here: #1617
This discussion covers the Switch.
In this discussion, we will write down the questions that arise during the process of standardizing the Switch and the decisions we make.
Sizes
We utilize 3 main sizes that will be used across components -
small
,medium
andlarge
. The CSS classes for the same will bek-switch-sm
,k-switch-md
,k-switch-lg
.Shape
The Switch will not have a
shape
property but it will have two other properties that will allow for some level of visual customization:thumb-rounded
track-rounded
These properties will render a utility class for setting the border-radius of the respective element. They will be:
k-rounded-sm
,k-rounded-md
,k-rounded-lg
,k-rounded-circle
(border-radius: 50%;). andk-rounded-pill
(border-radius: 9999px;).The
none
conceptAs described above, all properties will have a
none
value which will remove the default CSS class (will not add a class at all).Rendering
Docs
TODO
Tests (visual)
Tests should be created in
tests/visual/src/reference/
folder as following:switch/switch-${suite}.html
Component API
Playground
https://stackblitz.com/edit/angular-dm1zsi-kmkrgf?file=app/app.component.ts
Beta Was this translation helpful? Give feedback.
All reactions