fix(settings): visible radio buttons for the privacy and import choices
CI / Build & Quality Checks (push) Skipped
CI / Secret scan (gitleaks) (push) Skipped
CI / Playwright smoke (e2e) (push) Skipped
CI / Build & Quality Checks (pull_request) Successful in 3m22s
CI / Trigger Desktop Build (pull_request) Skipped
CI / Docker image build & smoke test (pull_request) Skipped
CI / Secret scan (gitleaks) (pull_request) Successful in 8s
CI / Playwright smoke (e2e) (pull_request) Successful in 19m52s
CI / Build & Quality Checks (push) Skipped
CI / Secret scan (gitleaks) (push) Skipped
CI / Playwright smoke (e2e) (push) Skipped
CI / Build & Quality Checks (pull_request) Successful in 3m22s
CI / Trigger Desktop Build (pull_request) Skipped
CI / Docker image build & smoke test (pull_request) Skipped
CI / Secret scan (gitleaks) (pull_request) Successful in 8s
CI / Playwright smoke (e2e) (pull_request) Successful in 19m52s
The app CSS hides native radio inputs, so the read-receipt choice and the "keep mine / use the file's" import choice showed no selection. Use the folds RadioButton. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
This commit is contained in:
1 parent
1af491cabb
commit
b93e4bcef9
2 files changed
+14
-10
No files matched your search
@@ -33,6 +33,7 @@ import {
|
|||||||
Switch,
|
Switch,
|
||||||
Text,
|
Text,
|
||||||
toRem,
|
toRem,
|
||||||
|
RadioButton,
|
||||||
} from 'folds';
|
} from 'folds';
|
||||||
import { isKeyHotkey } from 'is-hotkey';
|
import { isKeyHotkey } from 'is-hotkey';
|
||||||
import { HexColorPicker } from 'react-colorful';
|
import { HexColorPicker } from 'react-colorful';
|
||||||
@@ -1692,11 +1693,12 @@ export function Privacy() {
|
|||||||
key={value}
|
key={value}
|
||||||
style={{ display: 'flex', gap: config.space.S200, cursor: 'pointer' }}
|
style={{ display: 'flex', gap: config.space.S200, cursor: 'pointer' }}
|
||||||
>
|
>
|
||||||
<input
|
<RadioButton
|
||||||
type="radio"
|
|
||||||
name="activity-privacy"
|
name="activity-privacy"
|
||||||
|
variant="Primary"
|
||||||
|
size="300"
|
||||||
checked={activity === value}
|
checked={activity === value}
|
||||||
onChange={() => chooseActivity(value)}
|
onClick={() => chooseActivity(value)}
|
||||||
/>
|
/>
|
||||||
<Box direction="Column">
|
<Box direction="Column">
|
||||||
<Text size="T300">{label}</Text>
|
<Text size="T300">{label}</Text>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { useCallback, useRef, useState } from 'react';
|
import React, { useCallback, useRef, useState } from 'react';
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
import { Method } from 'matrix-js-sdk';
|
import { Method } from 'matrix-js-sdk';
|
||||||
import { Box, Button, Text, color } from 'folds';
|
import { Box, Button, RadioButton, Text, color } from 'folds';
|
||||||
import { SequenceCard } from '../../../components/sequence-card';
|
import { SequenceCard } from '../../../components/sequence-card';
|
||||||
import { SequenceCardStyle } from '../styles.css';
|
import { SequenceCardStyle } from '../styles.css';
|
||||||
import { SettingTile } from '../../../components/setting-tile';
|
import { SettingTile } from '../../../components/setting-tile';
|
||||||
@@ -224,22 +224,24 @@ export function YourDataSection() {
|
|||||||
here:
|
here:
|
||||||
</Text>
|
</Text>
|
||||||
<label>
|
<label>
|
||||||
<input
|
<RadioButton
|
||||||
type="radio"
|
|
||||||
name="your-data-conflicts"
|
name="your-data-conflicts"
|
||||||
|
variant="Primary"
|
||||||
|
size="300"
|
||||||
checked={!preferFile}
|
checked={!preferFile}
|
||||||
onChange={() => setPreferFile(false)}
|
onClick={() => setPreferFile(false)}
|
||||||
/>{' '}
|
/>{' '}
|
||||||
<Text as="span" size="T200">
|
<Text as="span" size="T200">
|
||||||
Keep mine
|
Keep mine
|
||||||
</Text>
|
</Text>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input
|
<RadioButton
|
||||||
type="radio"
|
|
||||||
name="your-data-conflicts"
|
name="your-data-conflicts"
|
||||||
|
variant="Primary"
|
||||||
|
size="300"
|
||||||
checked={preferFile}
|
checked={preferFile}
|
||||||
onChange={() => setPreferFile(true)}
|
onClick={() => setPreferFile(true)}
|
||||||
/>{' '}
|
/>{' '}
|
||||||
<Text as="span" size="T200">
|
<Text as="span" size="T200">
|
||||||
Use the file's
|
Use the file's
|
||||||
|
|||||||
Reference in new issue
Block a user