This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Brightspace/dbatiste/add-css-d
Adding diff the build to assert that less and scss generated css are …
- Loading branch information
Showing
5 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
node_modules/ | ||
test/output | ||
test/diff/less-scss-diff-new | ||
offscreen.css | ||
offscreen-less.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
.csslintrc | ||
node_modules | ||
karma.conf.js | ||
test | ||
offscreen.css.less | ||
offscreen.css.scss | ||
offscreen-less.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
# vui-offscreen | ||
[![NPM version][npm-image]][npm-url] | ||
[![Build status][ci-image]][ci-url] | ||
|
||
The **vui-offscreen** library provides a Less mixin and CSS for positioning elements off the screen. | ||
Off-screen elements are valuable from an accessibility perspective when you wish to have elements which are only visible to screen readers. For more information, read [WebAIM's article on Invisible Content](http://webaim.org/techniques/css/invisiblecontent/). | ||
|
||
For further information on this component and other VUI components, see the docs at [ui.valence.d2l.com](http://ui.valence.d2l.com/). | ||
|
||
#### Coding styles | ||
See the [VUI Best Practices & Style Guide](https://github.com/Brightspace/valence-ui-docs/wiki/Best-Practices-&-Style-Guide) for information on VUI naming conventions, plus information about the [EditorConfig](http://editorconfig.org) rules used in this repo. | ||
|
||
[npm-url]: https://npmjs.org/package/vui-offscreen | ||
[npm-image]: https://img.shields.io/npm/v/vui-offscreen.svg | ||
[ci-image]: https://travis-ci.org/Brightspace/valence-ui-offscreen.svg?branch=master | ||
[ci-url]: https://travis-ci.org/Brightspace/valence-ui-offscreen | ||
# vui-offscreen | ||
[![NPM version][npm-image]][npm-url] | ||
[![Build status][ci-image]][ci-url] | ||
[![Dependency Status][dependencies-image]][dependencies-url] | ||
|
||
This component contains Sass mixins and CSS for positioning elements off the screen. LESS mixins are still include for backward compatibility, however these will likely be removed in a future version. | ||
|
||
Off-screen elements are valuable from an accessibility perspective when you wish to have elements which are only visible to screen readers. For more information, read [WebAIM's article on Invisible Content](http://webaim.org/techniques/css/invisiblecontent/). | ||
|
||
For further information on this component and other VUI components, see the docs at [ui.valence.d2l.com](http://ui.valence.d2l.com/). | ||
|
||
#### Coding styles | ||
See the [VUI Best Practices & Style Guide](https://github.com/Brightspace/valence-ui-docs/wiki/Best-Practices-&-Style-Guide) for information on VUI naming conventions, plus information about the [EditorConfig](http://editorconfig.org) rules used in this repo. | ||
|
||
[npm-url]: https://npmjs.org/package/vui-offscreen | ||
[npm-image]: https://img.shields.io/npm/v/vui-offscreen.svg | ||
[ci-image]: https://travis-ci.org/Brightspace/valence-ui-offscreen.svg?branch=master | ||
[ci-url]: https://travis-ci.org/Brightspace/valence-ui-offscreen | ||
[dependencies-url]: https://david-dm.org/brightspace/valence-ui-offscreen | ||
[dependencies-image]: https://img.shields.io/david/Brightspace/valence-ui-offscreen.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
=================================================================== | ||
--- offscreen-less.css | ||
+++ offscreen.css | ||
@@ -4,8 +4,9 @@ | ||
overflow: hidden; | ||
width: 1px; | ||
height: 1px; | ||
} | ||
+ | ||
[dir="rtl"] .vui-offscreen { | ||
left: auto; | ||
right: -10000px; | ||
} |