Skip to content

Commit 98f2756

Browse files
committed
chore(ui): Hide shadow in button group (#2781)
1 parent 8d50fe9 commit 98f2756

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/dev-notes/2025-11-02/make-button-group-responsive/plan.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Tailwind CSSのレスポンシブクラスを使用してボタンの折り返
2020

2121
```svelte
2222
<div class="flex justify-center m-4">
23-
<ButtonGroup class="flex flex-wrap justify-start gap-1">
23+
<ButtonGroup class="flex flex-wrap justify-start gap-1 shadow-none">
2424
{#each Object.entries(contestTableProviderGroups) as [type, config]}
2525
<Button
2626
onclick={() => updateActiveContestType(type as ContestTableProviderGroups)}
@@ -45,14 +45,21 @@ Tailwind CSSのレスポンシブクラスを使用してボタンの折り返
4545
| `justify-center` | ボタングループ全体を水平中央揃え(外側div) |
4646
| `justify-start` | ボタン自体を左寄せ(ButtonGroup内) |
4747
| `gap-1` | ボタン間のスペーシング(0.25rem) |
48-
| `rounded` | ボタンの角に丸みを付与 |
48+
| `rounded-lg` | ボタンの角に丸みを付与 |
49+
| `border-b-0` | 下部ボーダーラインを削除 |
50+
| `shadow-none` | デフォルトシャドウを削除 |
51+
52+
## 注記
53+
54+
`ButtonGroup`コンポーネントのデフォルトスタイルに、下部ボーダーラインとシャドウが含まれているため、`border-b-0``shadow-none`クラスを追加してそれらを打ち消す必要があります。
4955

5056
## 参考資料
5157

5258
- [Tailwind CSS - Flex Wrap](https://tailwindcss.com/docs/flex-wrap)
5359
- [Tailwind CSS - Justify Content](https://tailwindcss.com/docs/justify-content)
5460
- [Tailwind CSS - Gap](https://tailwindcss.com/docs/gap)
5561
- [Tailwind CSS - Border Radius](https://tailwindcss.com/docs/border-radius)
62+
- [Tailwind CSS - Box Shadow](https://tailwindcss.com/docs/box-shadow)
5663

5764
## 使用ライブラリ
5865

src/lib/components/TaskTables/TaskTable.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
<!-- See: -->
173173
<!-- https://flowbite-svelte.com/docs/components/button-group -->
174174
<div class="flex justify-center m-4">
175-
<ButtonGroup class="flex flex-wrap justify-start gap-1">
175+
<ButtonGroup class="flex flex-wrap justify-start gap-1 shadow-none">
176176
{#each Object.entries(contestTableProviderGroups) as [type, config]}
177177
<Button
178178
onclick={() => updateActiveContestType(type as ContestTableProviderGroups)}

0 commit comments

Comments
 (0)