Skip to content

Commit

Permalink
Merge branch 'master' into storybook-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Feb 24, 2021
2 parents ee77772 + 0cfcf7c commit c9152d3
Show file tree
Hide file tree
Showing 33 changed files with 536 additions and 84 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
65 changes: 65 additions & 0 deletions docs/migration/11.x-carbon-components.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# `carbon-components`

**Note: everything in this file is a work-in-progress and will be changed.**

## Overview

- Carbon now uses [Dart Sass](https://npmjs.com/package/sass) along with Sass
Modules
- File paths have been renamed to provide shorter paths and more intuitive ways
to get access to common variables, mixins, functions, and more.
- Prefixed variables, functions, and mixins have been renamed as part of our
migration to Sass Modules

## Files

| Filename | v11 |
| --------------------------------------------------------------- | --------------------------------------- |
| `scss/globals` | |
| `scss/globals/fonts/*` | Removed |
| `scss/globals/grid/_grid.scss` | `scss/_grid.scss` |
| `scss/globals/scss` | `scss` |
| `scss/globals/scss/vendor/*` | Removed |
| `scss/globals/scss/_colors.scss` | `scss/_colors.scss` |
| `scss/globals/scss/_component-tokens.scss` | |
| `scss/globals/scss/_css--body.scss` | |
| `scss/globals/scss/_css--font-face.scss` | |
| `scss/globals/scss/_css--helpers.scss` | |
| `scss/globals/scss/_css--reset.scss` | |
| `scss/globals/scss/_deprecate.scss` | |
| `scss/globals/scss/_feature-flags.scss` | |
| `scss/globals/scss/_functions.scss` | |
| `scss/globals/scss/_helper-classes.scss` | |
| `scss/globals/scss/_helper-mixins.scss` | |
| `scss/globals/scss/_import-once.scss` | |
| `scss/globals/scss/_keyframes.scss` | |
| `scss/globals/scss/_layer.scss` | |
| `scss/globals/scss/_layout.scss` | |
| `scss/globals/scss/_mixins.scss` | |
| [`scss/globals/scss/_motion.scss`](#scssglobalsscss_motionscss) | `scss/_motion.scss` |
| `scss/globals/scss/_spacing.scss` | |
| `scss/globals/scss/_theme-tokens.scss` | |
| `scss/globals/scss/_theme.scss` | |
| `scss/globals/scss/_tooltip.scss` | |
| `scss/globals/scss/_typography.scss` | |
| `scss/globals/scss/_vars.scss` | |
| `scss/globals/scss/styles.scss` | `/index.scss`, require package directly |
| `scss/components` | |

### `scss/globals/scss/_motion.scss`

| v10 | v11 |
| :------------------------- | :-- |
| `$carbon--ease-in` | |
| `$carbon--ease-out` | |
| `$carbon--standard-easing` | |
| `$transition--base` | |
| `$transition--expansion` | |
| `$duration--fast-01` | |
| `$duration--fast-02` | |
| `$duration--moderate-01` | |
| `$duration--moderate-02` | |
| `$duration--slow-01` | |
| `$duration--slow-02` | |
| `@function motion` | |
| `@mixin motion` | |
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"mock-raf": "^1.0.0",
"node-sass": "^4.13.1",
"nodemon": "^1.18.7",
"path-to-regexp": "^2.2.0",
"path-to-regexp": "^6.2.0",
"portscanner": "^2.2.0",
"postcss-custom-properties": "^9.0.0",
"postcss-loader": "^3.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@
}
}

.#{$prefix}--btn--icon-only.#{$prefix}--btn--selected {
background: $selected-ui;
}

.#{$prefix}--btn path[data-icon-path='inner-path'] {
fill: none;
}
Expand Down
7 changes: 4 additions & 3 deletions packages/components/src/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,10 @@ $list-box-menu-width: rem(300px);
border-bottom-color: $selected-light-ui;
}

.#{$prefix}--list-box__menu-item--active:hover {
background-color: $hover-ui;
border-bottom-color: $hover-ui;
.#{$prefix}--list-box__menu-item--active:hover,
.#{$prefix}--list-box__menu-item--active.#{$prefix}--list-box__menu-item--highlighted {
background-color: $hover-selected-ui;
border-bottom-color: $hover-selected-ui;
}

.#{$prefix}--list-box__menu-item--active
Expand Down
Loading

0 comments on commit c9152d3

Please sign in to comment.