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 #18 from BrightspaceUI/dbatiste/update-root-selector
Browse files Browse the repository at this point in the history
Dbatiste/update root selector
  • Loading branch information
dbatiste authored Nov 28, 2016
2 parents 9d499bc + f9866e5 commit 94cb190
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"dependencies": {
"polymer": "^1.7.0"
},
"devDependencies": {
"d2l-demo-template": "~0.0.5"
},
"ignore": [
".editorconfig",
".eslintrc",
Expand Down
2 changes: 1 addition & 1 deletion d2l-offscreen-shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<dom-module id="d2l-offscreen-shared-styles">
<template>
<style>
html {
:host {
--d2l-offscreen: {
position: absolute !important;
left: -10000px;
Expand Down
20 changes: 20 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<title>d2l-offscreen</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://s.brightspace.com/lib/webcomponentsjs/0.7.21/webcomponents.min.js"></script>
<link rel="import" href="../../d2l-demo-template/d2l-demo-template.html">
<link rel="import" href="../d2l-offscreen.html">
</head>
<body unresolved>

<d2l-demo-template title="d2l-offscreen">

<div class="d2l-demo-fixture">
Some offscreen content: <d2l-offscreen>this should be offscreen</d2l-offscreen>
</div>

</d2l-demo-template>

</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d2l-offscreen",
"version": "2.2.0",
"version": "2.2.1",
"description": "Polymer web component and Sass mixin for positioning elements offscreen",
"private": true,
"scripts": {
Expand Down

0 comments on commit 94cb190

Please sign in to comment.