Skip to content

Commit

Permalink
[StatusIndicator]: fixed table border in example. [RangeDatePicker]: …
Browse files Browse the repository at this point in the history
…fixed footer background
  • Loading branch information
vik753 committed Apr 3, 2024
1 parent 125ad59 commit a78b94f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 52 deletions.
6 changes: 3 additions & 3 deletions app/src/docs/_examples/statusIndicator/WithTable.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ const personColumns: DataColumnProps<Person, number>[] = [
key: 'jobTitle',
caption: 'Title',
render: (r) => <Text>{r.jobTitle}</Text>,
width: 200,
width: 220,
},
{
key: 'productionCategory',
caption: 'Is Production',
render: (r) => <Text>{r.productionCategory ? 'Yes' : 'No' }</Text>,
width: 100,
width: 150,
},
];

Expand All @@ -70,7 +70,7 @@ export default function WithTableExample() {
const view = dataSource.useView(tableState, setTableState);

return (
<Panel background="surface-main" style={ { height: '400px' } }>
<Panel background="surface-main" style={ { height: '400px' } } shadow={ true }>
<DataTable getRows={ view.getVisibleRows } columns={ personColumns } value={ tableState } onValueChange={ setTableState } { ...view.getListProps() } />
</Panel>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
justify-content: center;
align-items: center;
border-top: 1px solid var(--uui-control-border);
background-color: var(--white);
}

.dot {
Expand Down
68 changes: 20 additions & 48 deletions public/docs/content/examples-rangeDatePicker-PresetsAndFooter.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,25 @@
{
"object": "value",
"document": {
"object": "document",
[
{
"data": {},
"nodes": [
"type": "paragraph",
"children": [
{
"object": "block",
"type": "paragraph",
"data": {},
"nodes": [
{
"object": "text",
"text": "You can define range presets via the ",
"marks": []
},
{
"object": "text",
"text": "presets",
"marks": [
{
"object": "mark",
"type": "uui-richTextEditor-code",
"data": {}
}
]
},
{
"object": "text",
"text": " prop and a footer via the ",
"marks": []
},
{
"object": "text",
"text": "renderFooter",
"marks": [
{
"object": "mark",
"type": "uui-richTextEditor-code",
"data": {}
}
]
},
{
"object": "text",
"text": " prop.",
"marks": []
}
]
"text": "You can define range presets via the "
},
{
"text": "presets",
"uui-richTextEditor-code": true
},
{
"text": " prop and a footer via the "
},
{
"text": "renderFooter",
"uui-richTextEditor-code": true
},
{
"text": " prop."
}
]
}
}
]

0 comments on commit a78b94f

Please sign in to comment.