Skip to content

Commit 4cc299e

Browse files
committed
fix linter errrors
1 parent 48d6d7b commit 4cc299e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

client/packages/lowcoder/src/comps/comps/buttonComp/buttonCompConstants.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ export const ButtonCompWrapper = styled.div<{ $disabled: boolean }>`
7373
7474
// The button component is disabled but can respond to drag & select events
7575
${(props) =>
76-
props.$disabled &&
77-
`
78-
cursor: not-allowed;
79-
button:disabled {
80-
pointer-events: none;
81-
}
82-
`};
76+
props.$disabled
77+
? `
78+
cursor: not-allowed;
79+
button:disabled {
80+
pointer-events: none;
81+
}
82+
`
83+
: ""
84+
}
8385
`;
8486

8587
/**

client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ function replaceAndMergeMultipleStyles(
961961

962962
export const ButtonStyle = [
963963
getBackground('primary'),
964-
...STYLING_FIELDS_SEQUENCE.filter(style=>style.name!=='lineHeight'),
964+
...STYLING_FIELDS_SEQUENCE,
965965
] as const;
966966

967967
export const DropdownStyle = [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy