-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
bugSomething isn't workingSomething isn't working
Description
YOUR BUG DESCRIPTION HERE
If relevant, specify:
- OS: M1 Mac
- Kobweb libs version: "0.20.0"
- Kobweb CLI version: 0.9.18
Steps to Reproduce
- Import the Bootstrap 5 CSS in the module level build.gradle.kts.
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
/>- Use the Silk Switch Composable
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
//Text("THIS PAGE INTENTIONALLY LEFT BLANK")
Switch(
checked = true,
onCheckedChange = {},
size = SwitchSize.LG,
)
}- Observe the size of the Switch.
Expected Behavior
The Switch should render correctly at its default size of 46px × 24px as shown when Bootstrap is not included.
(the SwitchSize.LG is used, and the default text size of my Chrome browser is 16.px)
Actual Behavior
The size of the Switch gets clipped down to 39.984px × 17.984px when Bootstrap CSS is included, as attached screenshot below.

Additional Context
I have prepared the basic project that can reproduce the above issue, so please kindly refer to it if required.
https://github.com/masah517/SwitchKobwebDemo
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working