Commit f10d6c4
committed
[Bug Fix] Honor close_button:true Region prop (was inert)
Region wrapper now carries data-close-button=hover|always plus a
group/toaster anchor. Toast::Close opacity rule extended:
group-data-[close-button=always]/toaster:opacity-100 — when consumer
sets close_button: true on the Region, the X is always visible
(better a11y for touch + cognitive accessibility).
Default stays close_button: false (hover/focus reveal) to match
shadcn sonner. Keyboard a11y unchanged: tab focuses item, focus shows
button, Escape dismisses.1 parent 12a5b9e commit f10d6c4
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
0 commit comments