Set reduceMotion body class
This commit is contained in:
parent
7e0b4f5f47
commit
8a5807f5df
|
@ -43,6 +43,7 @@ const mapStateToProps = (state) => {
|
||||||
showIntroduction,
|
showIntroduction,
|
||||||
me,
|
me,
|
||||||
theme: state.getIn(['settings', 'theme']),
|
theme: state.getIn(['settings', 'theme']),
|
||||||
|
reduceMotion: state.getIn(['settings', 'reduceMotion']),
|
||||||
systemFont: state.getIn(['settings', 'systemFont']),
|
systemFont: state.getIn(['settings', 'systemFont']),
|
||||||
dyslexicFont: state.getIn(['settings', 'dyslexicFont']),
|
dyslexicFont: state.getIn(['settings', 'dyslexicFont']),
|
||||||
demetricator: state.getIn(['settings', 'demetricator']),
|
demetricator: state.getIn(['settings', 'demetricator']),
|
||||||
|
@ -56,13 +57,14 @@ class GabSocialMount extends React.PureComponent {
|
||||||
showIntroduction: PropTypes.bool,
|
showIntroduction: PropTypes.bool,
|
||||||
me: PropTypes.string,
|
me: PropTypes.string,
|
||||||
theme: PropTypes.string,
|
theme: PropTypes.string,
|
||||||
|
reduceMotion: PropTypes.bool,
|
||||||
systemFont: PropTypes.bool,
|
systemFont: PropTypes.bool,
|
||||||
dyslexicFont: PropTypes.bool,
|
dyslexicFont: PropTypes.bool,
|
||||||
demetricator: PropTypes.bool,
|
demetricator: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { me, theme, systemFont, dyslexicFont, demetricator } = this.props;
|
const { me, theme, reduceMotion, systemFont, dyslexicFont, demetricator } = this.props;
|
||||||
if (me === null) return null;
|
if (me === null) return null;
|
||||||
|
|
||||||
// Disabling introduction for launch
|
// Disabling introduction for launch
|
||||||
|
@ -75,6 +77,7 @@ class GabSocialMount extends React.PureComponent {
|
||||||
const bodyClass = classNames('app-body', {
|
const bodyClass = classNames('app-body', {
|
||||||
[`theme-${theme}`]: theme,
|
[`theme-${theme}`]: theme,
|
||||||
'system-font': systemFont,
|
'system-font': systemFont,
|
||||||
|
'no-reduce-motion': !reduceMotion,
|
||||||
'dyslexic': dyslexicFont,
|
'dyslexic': dyslexicFont,
|
||||||
'demetricator': demetricator,
|
'demetricator': demetricator,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue