Skip to content

Commit

Permalink
Sass guidelines (#1257)
Browse files Browse the repository at this point in the history
Adds sass guidelines to the docs.
  • Loading branch information
snide authored Oct 31, 2018
1 parent dc2f690 commit 8902d68
Show file tree
Hide file tree
Showing 16 changed files with 3,359 additions and 221 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
- Added `apmTrace` icon to `EuiIcon` set ([#1263](https://github.com/elastic/eui/pull/1263))
- Added [Framer X](http://www.framer.com) component source files under the `src-framer` directory ([#1263](https://github.com/elastic/eui/pull/1263))
- Added `compressed` prop to `EuiComboBox` ([#1258](https://github.com/elastic/eui/pull/1258))
- Added guidelines for Sass usage. ([#1257](https://github.com/elastic/eui/pull/1257))

**Bug fixes**

- `EuiComboBox` no longer throws a _Maximum update depth exceeded_ error when used in popovers/modals ([#1258](https://github.com/elastic/eui/pull/1258))
- `Escape` key now closes `EuiComboBox` options list ([#1258](https://github.com/elastic/eui/pull/1258))
- Fixed margin issue around `EuiFlexGrid` in mobile displays ([#1257](https://github.com/elastic/eui/pull/1257))
- Fixed positioning and padding display issue in `EuiRange` ([#1257](https://github.com/elastic/eui/pull/1257))

## [`4.6.1`](https://github.com/elastic/eui/tree/v4.6.1)

Expand Down
15 changes: 1 addition & 14 deletions src-docs/src/components/guide_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
}
}


.guideDemo__size {
background: $euiTextColor;
display: inline-block;
Expand Down Expand Up @@ -150,21 +151,7 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
outline: solid 2px purple;
}

.guideColorPalette__swatch {

span {
height: $euiSize;
width: $euiSizeL;
}

&:first-child span {
border-radius: $euiBorderRadius 0 0 $euiBorderRadius;
}

&:last-child span {
border-radius: 0 $euiBorderRadius $euiBorderRadius 0;
}
}

@import "../views/guidelines/index";
@import "guide_section/index";
Expand Down
6 changes: 6 additions & 0 deletions src-docs/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import ColorGuidelines
import ModalGuidelines
from './views/guidelines/modals';

import SassGuidelines
from './views/guidelines/sass';

import TextScales
from './views/text_scaling/text_scaling_sandbox';

Expand Down Expand Up @@ -306,6 +309,9 @@ const navigation = [{
}, {
name: 'Modals',
component: ModalGuidelines,
}, {
name: 'Sass',
component: SassGuidelines,
}, {
name: 'Text scales',
component: TextScales,
Expand Down
Loading

0 comments on commit 8902d68

Please sign in to comment.