mirror of https://github.com/vector-im/riot-web
Fix clickable area of advanced toggle on appearance user settings tab (#8820)
parent
b5e18064ab
commit
89743c9321
|
@ -32,11 +32,6 @@ limitations under the License.
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_AppearanceUserSettingsTab_AdvancedToggle {
|
|
||||||
color: $accent;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_AppearanceUserSettingsTab_systemFont {
|
.mx_AppearanceUserSettingsTab_systemFont {
|
||||||
margin-left: calc($font-16px + 10px);
|
margin-left: calc($font-16px + 10px);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ import { MatrixClientPeg } from '../../../../../MatrixClientPeg';
|
||||||
import SettingsStore from "../../../../../settings/SettingsStore";
|
import SettingsStore from "../../../../../settings/SettingsStore";
|
||||||
import SettingsFlag from '../../../elements/SettingsFlag';
|
import SettingsFlag from '../../../elements/SettingsFlag';
|
||||||
import Field from '../../../elements/Field';
|
import Field from '../../../elements/Field';
|
||||||
|
import AccessibleButton from "../../../elements/AccessibleButton";
|
||||||
import { SettingLevel } from "../../../../../settings/SettingLevel";
|
import { SettingLevel } from "../../../../../settings/SettingLevel";
|
||||||
import { UIFeature } from "../../../../../settings/UIFeature";
|
import { UIFeature } from "../../../../../settings/UIFeature";
|
||||||
import { Layout } from "../../../../../settings/enums/Layout";
|
import { Layout } from "../../../../../settings/enums/Layout";
|
||||||
|
@ -90,12 +91,12 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
|
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
|
||||||
|
|
||||||
const brand = SdkConfig.get().brand;
|
const brand = SdkConfig.get().brand;
|
||||||
const toggle = <div
|
const toggle = <AccessibleButton
|
||||||
className="mx_AppearanceUserSettingsTab_AdvancedToggle"
|
kind="link"
|
||||||
onClick={() => this.setState({ showAdvanced: !this.state.showAdvanced })}
|
onClick={() => this.setState({ showAdvanced: !this.state.showAdvanced })}
|
||||||
>
|
>
|
||||||
{ this.state.showAdvanced ? _t("Hide advanced") : _t("Show advanced") }
|
{ this.state.showAdvanced ? _t("Hide advanced") : _t("Show advanced") }
|
||||||
</div>;
|
</AccessibleButton>;
|
||||||
|
|
||||||
let advanced: React.ReactNode;
|
let advanced: React.ReactNode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue