x
1
2
3
4
5
<div class="group-vertical" style="max-inline-size: 120px" role="group" aria-label="Vertical example"> <button name="button" type="button" class="btn">Profile</button> <button name="button" type="button" class="btn">Settings</button> <button name="button" type="button" class="btn">Message</button></div>
1
2
3
4
5
<div class="group-vertical" style="max-inline-size: 120px" role="group" aria-label="Vertical example"> <%= button_tag "Profile", class: "btn", type: "button" %> <%= button_tag "Settings", class: "btn", type: "button" %> <%= button_tag "Message", class: "btn", type: "button" %></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.group { display: flex; flex-direction: row; > :first-child { border-end-end-radius: 0; border-start-end-radius: 0; } > :last-child { border-end-start-radius: 0; border-start-start-radius: 0; } > :not(:first-child) { border-inline-start: 0; } > :not(:first-child, :last-child) { border-radius: 0; } > :focus-visible { z-index: 1; }}.group-vertical { display: flex; flex-direction: column; > :first-child { border-end-end-radius: 0; border-end-start-radius: 0; } > :last-child { border-start-end-radius: 0; border-start-start-radius: 0; } > :not(:first-child) { border-block-start: 0; } > :not(:first-child, :last-child) { border-radius: 0; } > :focus-visible { z-index: 1; }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.