Skip to content

Commit

Permalink
feat(hr): add support for hr ui #70
Browse files Browse the repository at this point in the history
Changes to be committed:
modified:   demo/demo.md
modified:   src/style-base.scss
  • Loading branch information
blackfalcon committed Jan 22, 2022
1 parent 020186a commit c7f89da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The `auro-menu` element should be used in situations where users will select one
<auro-menuoption data-value="Stops">Stops</auro-menuoption>
<auro-menuoption data-value="Price" selected>Price</auro-menuoption>
<auro-menuoption data-value="Duration">Duration</auro-menuoption>
<hr>
<auro-menuoption data-value="Departure">Departure</auro-menuoption>
<auro-menuoption data-value="Arrival">Arrival</auro-menuoption>
</auro-menu>
Expand Down
12 changes: 12 additions & 0 deletions src/style-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
::slotted([selected]) {
padding-left: 0;
}

// Styles are set to `important` to ensure they over-ride any styles
// set in the user's global scope.
/* stylelint-disable declaration-no-important */
::slotted(hr) {
overflow: visible !important;
height: 0 !important;
box-sizing: content-box !important;
border-width: 0 !important;
border-top: 1px solid var(--auro-color-border-primary-on-light) !important;
margin: var(--auro-size-xs) 0 !important;
}
}

ul {
Expand Down

0 comments on commit c7f89da

Please sign in to comment.