Skip to content

Commit

Permalink
fix(sidenav): tighten Spectrum adherence and sharpen docs delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Jun 2, 2020
1 parent 373c778 commit d4c70cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions documentation/src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ body {
height: 100%;
overflow: hidden;
margin: 0;
-webkit-font-smoothing: antialiased;
}
4 changes: 4 additions & 0 deletions packages/sidenav/src/sidenav-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ governing permissions and limitations under the License.

@import './spectrum-sidenav-item.css';

:host {
display: block;
}

:host([multiLevel]) {
--spectrum-web-component-sidenav-font-weight: var(
--spectrum-sidenav-item-font-weight,
Expand Down
4 changes: 2 additions & 2 deletions packages/sidenav/src/sidenav.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ governing permissions and limitations under the License.

--spectrum-web-component-sidenav-font-weight: var(
--spectrum-sidenav-item-font-weight,
400
var(--spectrum-global-font-weight-regular)
);
}

:host([variant='multilevel']) {
--spectrum-web-component-sidenav-font-weight: var(
--spectrum-sidenav-multilevel-main-item-font-weight,
700
var(--spectrum-global-font-weight-bold)
);
}

0 comments on commit d4c70cd

Please # to comment.