|
Ran
|
Jobs
1
|
Files
72
|
Run time
1min
|
Badge
README BADGES
|
push
github
feat(toaster): create toasts from options, keyed by id (#1215) * feat(toast, badge): placement classes replace the utility stacks (#1190) .toast-container-{top|middle|bottom}-{start|center|end} pins a toast container to the viewport: position fixed, inset from the edge by --cui-toast-container-inset (--cui-spacer-4 by default, declared on .toast-container next to --cui-toast-zindex), centred with logical insets and auto margins rather than transforms so it holds in RTL. .badge-position-{top|bottom}-{start|end} pins a badge to a corner of its positioned parent, centred on the corner, flipped under [dir=rtl]. The .btn .badge nudge becomes .btn :where(.badge) so a position class on a badge inside a button wins. Both replace the position-fixed/absolute + inset + translate-middle utility stacks the docs recommended and the React bindings composed; measured in Chromium against those stacks in LTR and RTL, the boxes match to the pixel. Docs examples and the migration guide updated. (cherry picked from commit 1ad48f1f2) * feat(toaster): create toasts from options, keyed by id A Toaster instance keeps the toasts it shows in a store keyed by id and is the single entry point for programmatic notifications: add() renders a toast from options and returns its id (an existing id updates in place and bumps updateKey), update() rewrites title, description, theme, action or timeout without remounting, close() hides one or every toast, promise() follows an asynchronous operation through loading, success and error. Without an element the toaster creates its own .toast-container in body and pins it with the placement class; a given element is used as is. The container is a region landmark; each toast announces by priority (status/polite or alert/assertive). limit keeps the newest toasts visible and leaves the oldest in the DOM as inert and hidden until a slot frees. Content is written as text unless html is on, in which case it goes ... (continued)
5114 of 5741 branches covered (89.08%)
Branch coverage included in aggregate %.
320 of 342 new or added lines in 1 file covered. (93.57%)
9921 of 10343 relevant lines covered (95.92%)
384.92 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 22 |
91.0
|
js/src/toaster.ts |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 34340410110.1 | 72 |
93.48
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|