Merge pull request #7999 from KDSBrowne/issue-7990

Switch shared notes hide button icon for RTL
This commit is contained in:
Anton Georgiev 2019-08-27 13:52:16 -04:00 committed by GitHub
commit bfe705c0e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,7 @@ const Note = (props) => {
const {
isLocked,
intl,
isRTL,
} = props;
const url = isLocked ? NoteService.getReadOnlyURL() : NoteService.getNoteURL();
@ -55,7 +56,7 @@ const Note = (props) => {
}}
aria-label={intl.formatMessage(intlMessages.hideNoteLabel)}
label={intl.formatMessage(intlMessages.title)}
icon="left_arrow"
icon={isRTL ? "right_arrow" : "left_arrow"}
className={styles.hideBtn}
/>
</div>

View File

@ -15,8 +15,9 @@ class NoteContainer extends PureComponent {
export default withTracker(() => {
const isLocked = NoteService.isLocked();
const isRTL = document.documentElement.getAttribute('dir') === 'rtl';
return {
isLocked,
isRTL,
};
})(NoteContainer);