-
Notifications
You must be signed in to change notification settings - Fork 4
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 #762 from indiana-university/release/2.8.0
Release 2.8.0
- Loading branch information
Showing
7 changed files
with
64 additions
and
8 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
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
30 changes: 30 additions & 0 deletions
30
src/sandbox/components/dialog/variants/dialog-hidden-element.njk
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,30 @@ | ||
--- | ||
tags: dialog | ||
title: Dialog with hidden child element | ||
layout: layouts/preview.njk | ||
permalink: /components/preview/{{ title | slug}}/ | ||
padding: true | ||
order: 8 | ||
--- | ||
<button type="button" class="rvt-button" data-rvt-dialog-trigger="dialog-example"> | ||
<span>Dialog example</span> | ||
</button> | ||
<div class="rvt-dialog" id="dialog-example" role="dialog" tabindex="-1" aria-labelledby="dialog-title" aria-describedby="dialog-description" data-rvt-dialog="dialog-example" hidden> | ||
<header class="rvt-dialog__header"> | ||
<h1 class="rvt-dialog__title" id="dialog-title">Dialog title</h1> | ||
</header> | ||
<div class="rvt-dialog__body"> | ||
<p id="dialog-description">The default dialog appears near the middle of the screen. It does not darken the page behind it and does not close when the user clicks outside of it. You can use data attributes to configure the appearance and behavior of the dialog.</p> | ||
</div> | ||
<div class="rvt-dialog__controls"> | ||
<button type="button" class="rvt-button" role="button"> | ||
<span>OK</span> | ||
</button> | ||
<button type="button" class="rvt-button rvt-button--secondary" data-rvt-dialog-close="dialog-example" role="button"> | ||
<span>Cancel</span> | ||
</button> | ||
<button type="button" class="rvt-button" role="button" hidden aria-hidden="true" style="display: none"> | ||
<span>Hidden</span> | ||
</button> | ||
</div> | ||
</div> |
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
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 |
---|---|---|
|
@@ -65,7 +65,7 @@ | |
/* stylelint-enable */ | ||
} | ||
|
||
> *:empty:not(hr) { | ||
> *:empty:not(br,embed,hr,input,img,wbr) { | ||
display: none; | ||
} | ||
} |