Skip to content

Commit fd31266

Browse files
committed
box shadow added on input
1 parent 00b88ef commit fd31266

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function getStyle(style: any) {
4646
}
4747

4848
const LabelViewWrapper = styled.div<{ $style: any, inputFieldStyle: any,$animationStyle:any }>`
49-
${(props) => {
49+
${(props) => {
5050
return (
5151
props.$style && {
5252
...props.$style,
@@ -230,7 +230,8 @@ export const LabelControl = (function () {
230230
? `calc(100% - ${getLabelWidth(props.width, props.widthUnit)} - 8px)`
231231
: "100%",
232232
height: props.position === "column" && !!props.text ? "calc(100% - 22px)" : "100%",
233-
rotate:args?.inputFieldStyle?.rotation
233+
rotate:args?.inputFieldStyle?.rotation,
234+
boxShadow:`${args?.inputFieldStyle?.boxShadow} ${args?.inputFieldStyle?.boxShadowColor}`
234235
}}
235236
>
236237
{args.children}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,8 @@ export const SliderStyle = [
10281028

10291029
export const InputLikeStyle = [
10301030
getStaticBackground(SURFACE_COLOR),
1031+
BOXSHADOW,
1032+
BOXSHADOWCOLOR,
10311033
...STYLING_FIELDS_SEQUENCE.filter(style=>style.name!=='rotation'),
10321034
...ACCENT_VALIDATE,
10331035
] as const;

0 commit comments

Comments
 (0)