Skip to content

Commit 70d1cf4

Browse files
committed
Added pointer-events:none for disabled
1 parent c266e76 commit 70d1cf4

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "CSS Button Component.",
55
"main": "src/main/css/index.css",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "gulp clean && gulp build:css && gulp test:css",
8+
"clean": "gulp clean"
89
},
910
"repository": {
1011
"type": "git",
@@ -24,10 +25,15 @@
2425
"homepage": "https://github.com/superfly-css/superfly-css-component-button#readme",
2526
"devDependencies": {
2627
"gulp": "^3.9.1",
27-
"superfly-css-task-build": "^0.1.8",
2828
"superfly-css-component-site": "0.0.2",
29-
"superfly-css-utilities-colors": "^0.1.0",
30-
"superfly-css-utilities-fonts": "0.0.6",
31-
"superfly-css-utilities-layout": "0.0.1"
29+
"superfly-css-foundation": "0.0.8",
30+
"superfly-css-task-build": "^0.1.9",
31+
"superfly-css-task-clean": "0.0.1",
32+
"superfly-css-task-test": "^0.3.0",
33+
"superfly-css-utilities-colors": "^0.1.3",
34+
"superfly-css-utilities-effects": "0.0.3",
35+
"superfly-css-utilities-fonts": "0.0.11",
36+
"superfly-css-utilities-icons": "0.0.2",
37+
"superfly-css-utilities-layout": "0.0.10"
3238
}
3339
}

src/main/css/index.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*/
2626

2727
.Button {
28+
display: inline-flex;
29+
justify-content: space-around;
30+
align-items: baseline;
2831
background: transparent;
2932
border-color: var(--Button-border-color);
3033
border-style: solid;
@@ -39,12 +42,12 @@
3942
text-align: center;
4043
text-decoration: none;
4144
user-select: none; /* 4 */
45+
cursor: pointer;
4246
}
4347

4448
/**
4549
* Remove excess padding and border in Firefox 4+
4650
*/
47-
4851
.Button::-moz-focus-inner {
4952
border: 0;
5053
padding: 0;
@@ -73,5 +76,6 @@
7376
.Button:disabled,
7477
.Button.onDisabled {
7578
cursor: default;
79+
pointer-events: none;
7680
opacity: var(--Button_onDisabled-opacity);
7781
}

0 commit comments

Comments
 (0)