Skip to content

Commit

Permalink
Merge branch 'master' into fix/link-list-end-header
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Feb 9, 2021
2 parents b336c19 + 07ed00b commit 55a4314
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
26 changes: 9 additions & 17 deletions packages/styles/scss/components/masthead/_masthead-leftnav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,23 +145,17 @@
@include carbon--type-style(body-short-02);

color: $text-01;
width: 100%;
text-overflow: ellipsis;
}
}
}

.#{$prefix}--side-nav__submenu {
display: flex;
flex-direction: column;

.#{$prefix}--side-nav__submenu-content {
width: 100%;
height: 100%;
height: rem(48px);
display: flex;
}

&::after {
content: '';
width: 100%;
border-bottom: 1px solid $ui-03;
}

Expand Down Expand Up @@ -304,7 +298,7 @@
width: 100%;

.#{$prefix}--side-nav__link-text {
align-self: end;
align-self: start;
margin-top: auto;
}

Expand All @@ -322,6 +316,11 @@
border-bottom: 1px solid $ui-04;
}

:host(#{$dds-prefix}-left-nav-menu[last-highlighted])
.#{$prefix}--side-nav__submenu
.#{$prefix}--side-nav__submenu-content,
.#{$prefix}--masthead__side-nav__last-highlighted
.#{$prefix}--side-nav__submenu-content,
.#{$prefix}--side-nav__menu-item.#{$prefix}--masthead__side-nav__last-highlighted
.#{$prefix}--side-nav__link::after,
:host(dds-left-nav-menu)
Expand All @@ -332,13 +331,6 @@
border-bottom: none;
}

.#{$prefix}--masthead__side-nav__last-highlighted,
:host(#{$dds-prefix}-left-nav-menu[last-highlighted]) {
.#{$prefix}--side-nav__submenu::after {
content: none;
}
}

.#{$prefix}--side-nav__submenu-platform {
flex-direction: row;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
::slotted(#{$dds-prefix}-megamenu-category-group-copy) {
color: $text-01;
margin-top: rem(-6px);
padding: 0 $spacing-05 1px $spacing-05;
padding: 0 $spacing-05 $spacing-03 $spacing-05;
}
}

Expand Down
7 changes: 7 additions & 0 deletions packages/web-components/IMPLEMENTATION_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,10 @@ The develoment environment looks at `STORYBOOK_IBMDOTCOM_WEB_COMPONENTS_USE_RTL`
Both of above use [RTLCSS](https://rtlcss.com) to generate the RTL version. RTLCSS has feature of [conrtol](https://rtlcss.com/learn/usage-guide/control-directives/)/[value](https://rtlcss.com/learn/usage-guide/value-directives/) directives, that `@carbon/ibmdotcom-web-components` codebase [utilize](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/packages/web-components/src/components/masthead/masthead.scss#L347-L356).
How to use the RTL version of CSS can be seen at [the usage documentation](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/packages/web-components/docs/enable-rtl.md).
## License header
We ensure that our source code has appropriate licence header, with two mechanisms:
1. The [CI task](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/package.json#L25) that [checks if all source files have license headers](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/gulp-tasks/lint.js#L25-L50).
2. The [pre-commit hook](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/.lintstagedrc#L4) that [checks if all staged source files have license headers](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/package.json#L27). If the license year is found stale in the step, we [update it](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/tasks/check-license.js#L46-L54) here.

0 comments on commit 55a4314

Please sign in to comment.