Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from BrightspaceUI/RTl_Fix_Again
Browse files Browse the repository at this point in the history
Fix RTL offscreen mixin to not override most offscreen rules
  • Loading branch information
capajon authored Dec 20, 2016
2 parents 8a70478 + 2c19652 commit 331a301
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions d2l-offscreen-shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
<template>
<style>
:host {
--d2l-offscreen: {
--d2l-offscreen-ltr-rtl-shared: {
position: absolute !important;
left: -10000px;
overflow: hidden;
width: 1px;
height: 1px;
white-space: nowrap;
}
--d2l-offscreen: {
@apply(--d2l-offscreen-ltr-rtl-shared);
left: -10000px;
};
}
:host-context([dir="rtl"]) {
--d2l-offscreen: {
left: 0;
@apply(--d2l-offscreen-ltr-rtl-shared);
right: -10000px;
};
}
Expand Down

0 comments on commit 331a301

Please sign in to comment.