Skip to content

Commit cb47992

Browse files
committed
#1127 button.Split: styling
1 parent abdb0d9 commit cb47992

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
.neo-split-button-wrapper {
2-
display: flex;
1+
.neo-split-button {
2+
border : v(button-border);
3+
border-radius: v(button-border-radius);
4+
display : flex;
5+
width : fit-content;
6+
7+
.neo-button {
8+
border : none;
9+
margin : 0;
10+
padding: .5em;
11+
12+
&:last-child {
13+
border-left: v(button-border);;
14+
}
15+
}
316
}

src/button/Split.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ class Split extends Button {
1818
* @protected
1919
*/
2020
ntype: 'split-button',
21-
/**
22-
* @member {String[]} cls=['neo-split-button','neo-button']
23-
*/
24-
cls: ['neo-split-button', 'neo-button'],
2521
/**
2622
* Read only, it will get created inside the ctor.
2723
* Use splitButtonConfig to pass initial config for it.
@@ -44,7 +40,7 @@ class Split extends Button {
4440
* @member {String} _vdom
4541
*/
4642
_vdom: {
47-
cls: ['neo-split-button-wrapper'],
43+
cls: ['neo-split-button'],
4844
cn : [{
4945
tag: 'button',
5046
cn : [{

0 commit comments

Comments
 (0)