Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(FocusZone): Enable RTL #646

Merged
merged 7 commits into from
Dec 20, 2018
Merged

feat(FocusZone): Enable RTL #646

merged 7 commits into from
Dec 20, 2018

Conversation

sophieH29
Copy link
Contributor

@sophieH29 sophieH29 commented Dec 19, 2018

This PR aims to enable RTL mode for FocusZone.
Also contains fixes for bidirectional mode, replicated from fabric-ui

src/lib/accessibility/FocusZone/FocusZone.tsx Outdated Show resolved Hide resolved
@@ -747,9 +747,20 @@ export class FocusZone extends React.Component<FocusZoneProps> implements IFocus
this.props.isRtl,
(activeRect: ClientRect, targetRect: ClientRect) => {
let distance = -1
let topBottomComparison
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not quite a descriptive name.
(don't ask me for proposal for better one)

Copy link
Member

@miroslavstastny miroslavstastny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG & go!

@sophieH29 sophieH29 merged commit de44332 into master Dec 20, 2018
@sophieH29 sophieH29 deleted the feat/rtl-focus-zone branch December 20, 2018 10:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants