Skip to content

Commit 9080dba

Browse files
authored
Merge pull request #10 from CGWebDev2003/main
Fixed button snippets
2 parents 961f48c + 5878c20 commit 9080dba

File tree

4 files changed

+62
-12
lines changed

4 files changed

+62
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Released]
88

9+
## [2.0.5] - 2023-06-08
10+
11+
### Fixed
12+
13+
- Added "button-text"-elements to every button
14+
915
## [2.0.0] - 2023-05-18
1016

1117
### Added

neptunecss-snippets-2.0.5.vsix

28 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publisher": "NeptuneCSS",
55
"icon": "icon.png",
66
"description": "VS Code snippets for Neptune CSS",
7-
"version": "2.0.4",
7+
"version": "2.0.5",
88
"scripts": {
99
"package": "C:/Users/colin/AppData/Roaming/npm/vsce package"
1010
},

snippets/html/buttons.code-snippets

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,113 @@
44
"Neptune default button": {
55
"scope": "html",
66
"prefix": "neptune-button",
7-
"body": "<button>${1:Default}</button>",
7+
"body": [
8+
"<button>",
9+
" <span class=\"button-text\">${1:Button}</span>",
10+
"</button>"
11+
],
812
"description": "Default button"
913
},
1014
// Button sizes
1115
"Neptune button S": {
1216
"scope": "html",
1317
"prefix": "neptune-button-s",
14-
"body": "<button class=\"button-s\">${1:Button S}</button>",
18+
"body": [
19+
"<button class=\"button-s\">",
20+
" <span class=\"button-text\">${1:Button S}</span>",
21+
"</button>"
22+
],
1523
"description": "Button S"
1624
},
1725
"Neptune button M": {
1826
"scope": "html",
1927
"prefix": "neptune-button-m",
20-
"body": "<button class=\"button-m\">${1:Button M}</button>",
28+
"body": [
29+
"<button class=\"button-m\">",
30+
" <span class=\"button-text\">${1:Button M}</span>",
31+
"</button>"
32+
],
2133
"description": "Button M"
2234
},
2335
"Neptune button L": {
2436
"scope": "html",
2537
"prefix": "neptune-button-l",
26-
"body": "<button class=\"button-l\">${1:Button L}</button>",
38+
"body": [
39+
"<button class=\"button-l\">",
40+
" <span class=\"button-text\">${1:Button L}</span>",
41+
"</button>"
42+
],
2743
"description": "Button L"
2844
},
2945
// Button styles
3046
"Neptune button primary": {
3147
"scope": "html",
3248
"prefix": "neptune-button-primary",
33-
"body": "<button class=\"button-primary\">${1:Primary}</button>",
49+
"body": [
50+
"< class=\"button-primary\">",
51+
" <span class=\"button-text\">${1:Primary}</span>",
52+
"</button>"
53+
],
3454
"description": "Primary button"
3555
},
3656
"Neptune button secondary": {
3757
"scope": "html",
3858
"prefix": "neptune-button-secondary",
39-
"body": "<button class=\"button-secondary\">${1:Secondary}</button>",
59+
"body": [
60+
"< class=\"button-secondary\">",
61+
" <span class=\"button-text\">${1:Secondary}</span>",
62+
"</button>"
63+
],
4064
"description": "Secondary button"
4165
},
4266
"Neptune button cta": {
4367
"scope": "html",
4468
"prefix": "neptune-button-cta",
45-
"body": "<button class=\"button-cta\">${1:Call to action}</button>",
69+
"body": [
70+
"<button class=\"button-cta\">",
71+
" <span class=\"button-text\">${1:Call to action}</span>",
72+
"</button>"
73+
],
4674
"description": "CTA button"
4775
},
4876
"Neptune button information": {
4977
"scope": "html",
5078
"prefix": "neptune-button-info",
51-
"body": "<button class=\"button-info\">${1:Information}</button>",
79+
"body": [
80+
"<button class=\"button-info\">",
81+
" <span class=\"button-text\">${1:Information}</span>",
82+
"</button>"
83+
],
5284
"description": "Information button"
5385
},
5486
"Neptune button success": {
5587
"scope": "html",
5688
"prefix": "neptune-button-success",
57-
"body": "<button class=\"button-success\">${1:Success}</button>",
89+
"body": [
90+
"<button class=\"button-success\">",
91+
" <span class=\"button-text\">${1:Success}</span>",
92+
"</button>"
93+
],
5894
"description": "Success button"
5995
},
6096
"Neptune button warning": {
6197
"scope": "html",
6298
"prefix": "neptune-button-warning",
63-
"body": "<button class=\"button-warning\">${1:Warning}</button>",
99+
"body": [
100+
"<button class=\"button-warning\">",
101+
" <span class=\"button-text\">${1:Warning}</span>",
102+
"</button>"
103+
],
64104
"description": "Warning button"
65105
},
66106
"Neptune button error": {
67107
"scope": "html",
68108
"prefix": "neptune-button-error",
69-
"body": "<button class=\"button-error\">${1:Error}</button>",
109+
"body": [
110+
"<button class=\"button-error\">",
111+
" <span class=\"button-text\">${1:Error}</span>",
112+
"</button>"
113+
],
70114
"description": "Error button"
71115
}
72116
}

0 commit comments

Comments
 (0)