Merge pull request #7999 from KDSBrowne/issue-7990
Switch shared notes hide button icon for RTL
This commit is contained in:
commit
bfe705c0e6
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user