Skip to content

Commit 1e9847a

Browse files
committed
use ConfigProvider instead
1 parent 1020ad3 commit 1e9847a

File tree

5 files changed

+171
-153
lines changed

5 files changed

+171
-153
lines changed

.changeset/big-kangaroos-enjoy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@ensembleui/react-runtime": patch
33
---
44

5-
enhance DataGrid with rowHoverStyle and hideSelectAll props for improved styling and functionality
5+
enhance DataGrid with rowHoverBg and rowSelectedHoverBg styles

apps/kitchen-sink/src/ensemble/screens/widgets.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ View:
540540
name: dummyData
541541
template:
542542
DataRow:
543+
styles:
544+
backgroundColor: lime
545+
rowHoverBg: yellow
543546
children:
544547
- Text:
545548
id: ${'x_'+index}
@@ -1131,6 +1134,8 @@ View:
11311134
size: small
11321135
value: true
11331136
leadingText: Set to true and requred
1137+
htmlAttributes:
1138+
title: tooltip text
11341139
- Card:
11351140
styles:
11361141
width: unset

packages/runtime/src/widgets/Collapsible.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ export const Collapsible: React.FC<CollapsibleProps> = (props) => {
233233
expandIconPosition={props.expandIconPosition}
234234
items={[...collapsibleItems, ...templateItems]}
235235
onChange={handleCollapsibleChange}
236+
style={{
237+
...values?.styles,
238+
...(values?.styles?.visible === false
239+
? { display: "none" }
240+
: undefined),
241+
}}
236242
/>
237243
</ConfigProvider>
238244
);

0 commit comments

Comments
 (0)