Skip to content

Commit

Permalink
2.3.2 (#49)
Browse files Browse the repository at this point in the history
* Notifications - Add `nv-progress-height` theme variable

* Notifications - Fix border radius rtl progress bar

* Pkg - Bump 2.3.2

* Notifications - Cleanup progress css

* Notifications - Remove unnecessary default theme variables
  • Loading branch information
smastrom authored Apr 7, 2024
1 parent bdd5f8b commit 2e5341b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
25 changes: 13 additions & 12 deletions packages/notivue/Notifications/notifications-progress.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
@media (prefers-reduced-motion: no-preference) {
.Notivue__notification {
&:has(.Notivue__progress) {
border-radius: var(--nv-radius, 0) var(--nv-radius, 0) var(--nv-radius, 0) 0;
.Notivue__notification:has(.Notivue__progress) {
border-radius: var(--nv-radius, 0) var(--nv-radius, 0) var(--nv-radius, 0) 0;

& .Notivue__content-message {
margin-bottom: 4px;
}
& .Notivue__content-message {
margin-bottom: var(--nv-progress-height, 4px);
}
}

Expand All @@ -14,19 +12,22 @@
bottom: 0;
left: 0;
width: 100%;
height: 4px;
height: var(--nv-progress-height, 4px);
background-color: var(--nv-accent);
animation: Notivue__progress-kf var(--nv-anim-dur) linear forwards;
transform-origin: left;
border-radius: 0 var(--nv-radius, 0) var(--nv-radius, 0) 0;
}

@media (prefers-reduced-motion: reduce) {
animation: none;
[dir='rtl'] {
& .Notivue__progress {
transform-origin: right;
border-radius: var(--nv-radius, 0) 0 0 var(--nv-radius, 0);
}
}

[dir='rtl'] .Notivue__progress {
transform-origin: right;
& .Notivue__notification:has(.Notivue__progress) {
border-radius: var(--nv-radius, 0) var(--nv-radius, 0) 0 var(--nv-radius, 0);
}
}

@keyframes Notivue__progress-kf {
Expand Down
1 change: 0 additions & 1 deletion packages/notivue/Notifications/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const layout: NotivueTheme = {
'--nv-icon-size': '1.25rem',
'--nv-title-size': '0.925rem',
'--nv-message-size': '0.925rem',
'--nv-tip-width': '0px',
'--nv-y-align': 'center',
}

Expand Down
1 change: 1 addition & 0 deletions packages/notivue/Notifications/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ThemeLayoutVars =
| '--nv-tip-width'
| '--nv-y-align'
| '--nv-y-align-has-title'
| '--nv-progress-height'

type ThemeGlobalColorsVars =
| '--nv-global-bg'
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/nuxt/module.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "notivue/nuxt",
"configKey": "notivue",
"version": "2.3.1"
"version": "2.3.2"
}
2 changes: 1 addition & 1 deletion packages/notivue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notivue",
"version": "2.3.1",
"version": "2.3.2",
"private": false,
"description": "Fully-featured toast notification system for Vue and Nuxt",
"keywords": [
Expand Down

0 comments on commit 2e5341b

Please sign in to comment.