Skip to content

Commit e9b81e3

Browse files
authored
docs: Improve drop indicator and touchable example colors (#557)
## Summary Two small Grid example colour fixes (visible on the docs site): - **Drop indicator (custom-style example)** — `--ifm-color-primary-lightest` was too bright in dark mode; now a transparent fill with a `--ifm-color-primary` border. - **Touchable** — the delete button blended into the card (`--ifm-color-primary-light`); now translucent white, with reordering persisted via `onDragEnd`. Verified in light and dark mode.
1 parent 8bde666 commit e9b81e3

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

packages/docs/src/examples/DropIndicatorCustomStyle.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ const styles = StyleSheet.create({
4242
padding: 10
4343
},
4444
dropIndicator: {
45-
backgroundColor: 'var(--ifm-color-primary-lightest)',
45+
backgroundColor: 'transparent',
4646
borderColor: 'var(--ifm-color-primary)',
47+
borderRadius: 10,
4748
borderStyle: 'solid',
48-
borderWidth: 5
49+
borderWidth: 4
4950
},
5051
text: {
5152
color: 'white',

packages/docs/src/examples/Touchable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default function TouchableExample() {
3535
data={data}
3636
renderItem={renderItem}
3737
rowGap={10}
38+
onDragEnd={({ data: newData }) => setData(newData)}
3839
/>
3940
{data.length === 0 && (
4041
<View style={styles.emptyContainer}>
@@ -59,7 +60,7 @@ const styles = StyleSheet.create({
5960
padding: 10
6061
},
6162
deleteButton: {
62-
backgroundColor: 'var(--ifm-color-primary-light)',
63+
backgroundColor: 'rgba(255, 255, 255, 0.3)',
6364
borderRadius: 10,
6465
padding: 8
6566
},

0 commit comments

Comments
 (0)