You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/components/loader.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,3 +75,25 @@ Loaders are also supported on <a href="/components/button">button</a> elements.
75
75
<buttonclass="busy success">Save profile</button>
76
76
<buttonclass="busy alert">Delete account</button>
77
77
```
78
+
79
+
### Input loader
80
+
81
+
Similar to buttons, loaders are also supported on <ahref="/components/input">input</a> elements. Use the `busy` class to replace the contents of an input element with a loader while keeping the input size.
Copy file name to clipboardExpand all lines: docs/pages/components/tab.md
+54-3Lines changed: 54 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,28 @@ Use the `tab-group` class on a parent element containing a `<nav>` with an order
70
70
</div>
71
71
```
72
72
73
+
To make the tabs actually work, you can use the following simple script in vanilla JavaScript. It applies to all `.tab-group` elements, even if there are multiple ones on the same page. It adds a click event listener to all tabs, that are not disabled and moves the `.active` class to the clicked tab accordingly.
The `badge` class can be used to show [badges](/components/badge) on tab list elements.
@@ -83,6 +105,11 @@ The `badge` class can be used to show [badges](/components/badge) on tab list el
83
105
<li>Invoices</li>
84
106
</ol>
85
107
</nav>
108
+
<section>
109
+
<div class="active"></div>
110
+
<div></div>
111
+
<div></div>
112
+
</section>
86
113
</div>
87
114
</div>
88
115
@@ -116,6 +143,14 @@ Per default the tab bar is on top of the content. The `bottom`, `left` or `right
116
143
<h4>Tab bar positioned at the bottom</h4>
117
144
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi. Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at. In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus.</p>
118
145
</div>
146
+
<div>
147
+
<h4>Quotes created</h4>
148
+
<p>In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi. Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at.</p>
149
+
</div>
150
+
<div>
151
+
<h4>Invoices sent</h4>
152
+
<p>Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at. In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi.</p>
153
+
</div>
119
154
</section>
120
155
</div>
121
156
</div>
@@ -148,9 +183,17 @@ Per default the tab bar is on top of the content. The `bottom`, `left` or `right
148
183
</nav>
149
184
<section>
150
185
<div class="active">
151
-
<h4>Tab bar positioned at the left</h4>
186
+
<h4>Tab bar positioned to the left</h4>
152
187
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi. Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at. In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus.</p>
153
188
</div>
189
+
<div>
190
+
<h4>Quotes created</h4>
191
+
<p>In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi. Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at.</p>
192
+
</div>
193
+
<div>
194
+
<h4>Invoices sent</h4>
195
+
<p>Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at. In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi.</p>
196
+
</div>
154
197
</section>
155
198
</div>
156
199
</div>
@@ -183,16 +226,24 @@ Per default the tab bar is on top of the content. The `bottom`, `left` or `right
183
226
</nav>
184
227
<section>
185
228
<div class="active">
186
-
<h4>Tab bar positioned at the left</h4>
229
+
<h4>Tab bar positioned to the right</h4>
187
230
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi. Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at. In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus.</p>
188
231
</div>
232
+
<div>
233
+
<h4>Quotes created</h4>
234
+
<p>In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi. Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at.</p>
235
+
</div>
236
+
<div>
237
+
<h4>Invoices sent</h4>
238
+
<p>Nulla facilisi. Phasellus vehicula convallis nisl, id suscipit dui semper at. In eu iaculis lorem. In vehicula sed mauris et suscipit. Vivamus pellentesque non massa sit amet ornare. Integer placerat est vitae nisl molestie, eget rhoncus erat vulputate. Proin ornare massa eget bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra viverra nisl, vel maximus turpis ornare a. Ut scelerisque lectus sed odio dictum scelerisque vitae quis nisi.</p>
Copy file name to clipboardExpand all lines: docs/pages/components/tooltip.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,16 @@ A tooltip provides additional information for an element on hover or focus.
10
10
11
11
### Position
12
12
13
-
Use the `data-tooltip` attribute on any element to attach a tooltip that appears above the element on hover or focus. Linebreaks can be used too.
13
+
Use the `data-tooltip` attribute on any element to attach a tooltip that appears above the element on hover or focus. Linebreaks can be inserted too using the ` ` line break entity (or another line break character suitable for your use case).
0 commit comments