Skip to content

Commit

Permalink
Merge pull request #134 from BrightspaceUI/majones/allowHiddenOnD2lBu…
Browse files Browse the repository at this point in the history
…ttonIcon

Allows hidden to work in shadow dom.
  • Loading branch information
m6jones authored Aug 24, 2018
2 parents 97e8aaa + 16989e6 commit e77319d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions d2l-button-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
right: calc(((var(--d2l-button-icon-min-width) - 0.9rem) / 2) * -1);
}
}
:host([hidden]) {
display: none;
}

button {
background-color: transparent;
border-color: transparent;
Expand Down
3 changes: 3 additions & 0 deletions d2l-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
:host {
display: inline-block;
}
:host([hidden]) {
display: none;
}
button {
font-family: inherit;
padding: 0.5rem 1.5rem;
Expand Down
3 changes: 3 additions & 0 deletions d2l-floating-buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
box-sizing: border-box;
display: block;
}
:host([hidden]) {
display: none;
}
.d2l-floating-buttons-container {
border-top: 1px solid transparent;
display: block;
Expand Down
4 changes: 2 additions & 2 deletions wct.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"browsers": [
{
"browserName": "chrome",
"platform": "OS X 10.12",
"platform": "OS X 10.13",
"version": ""
},
{
"browserName": "firefox",
"platform": "OS X 10.12",
"platform": "OS X 10.13",
"version": ""
},
{
Expand Down

0 comments on commit e77319d

Please sign in to comment.