We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signed-off-by: ashishjain [email protected] Trying to add css for Rounded-Toggle-Button , but error giving --
./docs/products/buttons.mdx TypeError: (intermediate value).slice is not a function
docs/products/buttons.mdx
### Button group with Toggle <Playground> <h2>Toggle Switch</h2> <label class="btn-pill-switch"> <input type="checkbox" style="display: none;"> <span class="pill-toggle pill-round ">primary</span> </label> </Playground>
_scss/product/components/buttons.scss
.btn-pill-switch { position: relative; display: inline-block; vertical-align: middle; width: 48px; height: 28px; }
.pill-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; text-align:center; padding-top:4px; background-color: white; } .pill-round { border-radius: 34px; border:1px solid gray; }
input:checked + .pill-toggle { background-color: blue; color:white; border:1px solid blue; }
Attached screenshot for desire result --
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Signed-off-by: ashishjain [email protected]
Trying to add css for Rounded-Toggle-Button , but error giving --
docs/products/buttons.mdx
_scss/product/components/buttons.scss
.btn-pill-switch {
position: relative;
display: inline-block;
vertical-align: middle;
width: 48px;
height: 28px;
}
.pill-toggle {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align:center;
padding-top:4px;
background-color: white;
}
.pill-round {
border-radius: 34px;
border:1px solid gray;
}
input:checked + .pill-toggle {
background-color: blue;
color:white;
border:1px solid blue;
}
Attached screenshot for desire result --
The text was updated successfully, but these errors were encountered: