Skip to content

Commit d7bb746

Browse files
committed
Fix button style
1 parent 28fddf8 commit d7bb746

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.23",
3+
"version": "0.1.24",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Button/Button.styles.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ const handleLabel = (p: StyledButtonProps) => {
6363
if (!p.isLabel) {
6464
return `
6565
width: 24px;
66+
color: ${p.color ?? primaryColor};
67+
height: 100%;
68+
font-size: 15px;
69+
margin: 0 5px 0 5px;
70+
white-space: nowrap;
6671
`;
6772
}
6873
};
@@ -95,12 +100,4 @@ export const StyledButton = styled.button<StyledButtonProps>`
95100
height: 20px;
96101
opacity: 100%;
97102
}
98-
99-
& label {
100-
color: ${(p) => p.color ?? primaryColor};
101-
height: 100%;
102-
font-size: 15px;
103-
margin: 0 5px 0 5px;
104-
white-space: nowrap;
105-
}
106103
`;

0 commit comments

Comments
 (0)