Previews

No matching results.

Pages

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="group" role="group" aria-label="Basic example">
<button name="button" type="button" class="btn">
<span class="icon icon--circle-user" aria-hidden="true"></span>
<span>Profile</span>
</button>
<button name="button" type="button" class="btn">
<span class="icon icon--sliders-vertical" aria-hidden="true"></span>
<span>Settings</span>
</button>
<button name="button" type="button" class="btn">
<span class="icon icon--download" aria-hidden="true"></span>
<span>Download</span>
</button></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div class="group" role="group" aria-label="Basic example">
<%= button_tag class: "btn", type: "button" do %>
<span class="icon icon--circle-user" aria-hidden="true"></span>
<span>Profile</span>
<% end %>
<%= button_tag class: "btn", type: "button" do %>
<span class="icon icon--sliders-vertical" aria-hidden="true"></span>
<span>Settings</span>
<% end %>
<%= button_tag class: "btn", type: "button" do %>
<span class="icon icon--download" aria-hidden="true"></span>
<span>Download</span>
<% end %>
</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
.group {
align-items: center;
display: flex;
}
.group > :first-child {
border-end-end-radius: 0;
border-start-end-radius: 0;
}
.group > :last-child {
border-end-start-radius: 0;
border-start-start-radius: 0;
}
.group > :not(:first-child) {
border-inline-start: 0;
}
.group > :not(:first-child, :last-child) {
border-radius: 0;
}
.group > :focus-visible {
z-index: 1;
}
Java Script is not required or multiple files are needed, check the notes.