mayadata-io / mayadata-io/de-code
Rounded toggle button issue
まだ誰も着手していません。
- 主要言語
- CSS
- スター
- 6
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Signed-off-by: ashishjain ashish.jain@mayadata.io
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 --

コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
docs/products/buttons.mdx と scss/product/components/_buttons.scss から始め、ドキュメントのビルド時に発生する報告された TypeError を再現します。報告された slice エラーを角丸トグルの例またはそのスタイルまで追跡し、例がエラーなしでビルドされ、意図した角丸トグルがレンダリングされれば作業完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- css
- 領域
- documentation, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100