Skip to content

Commit

Permalink
Merge branch 'master' into 5199-tertiary-button-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Feb 1, 2020
2 parents b9d4d1e + c9019ce commit 95f7ba3
Show file tree
Hide file tree
Showing 28 changed files with 190 additions and 182 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy-vanilla-devenv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy vanilla devenv to IBM Cloud

on:
push:
tags:
# Matches tags that have the shape `vX.Y.Z`. Reference:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requesttagsbranches
- 'v[0-9]+.[0-9]+.[0-9]+'

# Ignore tags that use a preid after `vX.Y.Z`, for example: vX.Y.Z-alpha.0
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns
- '!v[0-9]+.[0-9]+.[0-9]+-*'

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install dependencies
run: yarn install --offline
- name: Build project
run: yarn build
- name: Install ibmcloud CLI
run: curl -fsSL https://clis.cloud.ibm.com/install/osx | sh
- name: Login to IBM Cloud
env:
CLOUD_API_KEY: ${{ secrets.CLOUD_API_KEY}}
run: |
ibmcloud login \
-a 'https://cloud.ibm.com' \
-u 'apikey' \
-p "$CLOUD_API_KEY" \
-o 'carbon-design-system' \
-s 'production' \
-r 'us-south'
- name: Install IBM Cloud plugins
run: |
ibmcloud cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org
ibmcloud cf install-plugin blue-green-deploy -f -r CF-Community
- name: Deploy vanilla devenv
run: |
cd packages/components
ibmcloud cf blue-green-deploy carbon-dev-environment \
-f manifest.yml \
--delete-old-apps
2 changes: 2 additions & 0 deletions packages/components/.cfignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
demo/*
!demo/index.html
!demo/demo.js
!demo/demo.min.js
!demo/demo.min.js.map
!demo/demo.css
!demo/code/
!demo/code/**
Expand Down
79 changes: 37 additions & 42 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,6 @@ $carbon--spacing-04: 0.75rem;
- `spacing-04`
- **Used by**:
- [dropdown [mixin]](#dropdown-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [lists [mixin]](#lists-mixin)
- [inline-notifications [mixin]](#inline-notifications-mixin)
- [text-area [mixin]](#text-area-mixin)
Expand Down Expand Up @@ -3471,7 +3470,6 @@ $carbon--spacing-07: 2rem;
- `spacing-07`
- **Used by**:
- [snippet [mixin]](#snippet-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [form [mixin]](#form-mixin)
- [listbox [mixin]](#listbox-mixin)
- [number-input [mixin]](#number-input-mixin)
Expand Down Expand Up @@ -3517,6 +3515,7 @@ $carbon--spacing-09: 3rem;
- **Used by**:
- [accordion [mixin]](#accordion-mixin)
- [date-picker [mixin]](#date-picker-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [listbox [mixin]](#listbox-mixin)
- [modal [mixin]](#modal-mixin)
- [tile [mixin]](#tile-mixin)
Expand Down Expand Up @@ -6395,7 +6394,6 @@ $text-02: if(
- [modal [mixin]](#modal-mixin)
- [overflow-menu [mixin]](#overflow-menu-mixin)
- [pagination [mixin]](#pagination-mixin)
- [search [mixin]](#search-mixin)
- [tabs [mixin]](#tabs-mixin)
- [toggle [mixin]](#toggle-mixin)
- [toolbar [mixin]](#toolbar-mixin)
Expand Down Expand Up @@ -6534,6 +6532,7 @@ $icon-01: if(
- [snippet [mixin]](#snippet-mixin)
- [data-table-v2-action [mixin]](#data-table-v2-action-mixin)
- [date-picker [mixin]](#date-picker-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [listbox [mixin]](#listbox-mixin)
- [modal [mixin]](#modal-mixin)
- [number-input [mixin]](#number-input-mixin)
Expand Down Expand Up @@ -6565,9 +6564,9 @@ $icon-02: if(
- **Type**: `{undefined}`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)
- [file-uploader [mixin]](#file-uploader-mixin)
- [listbox [mixin]](#listbox-mixin)
- [overflow-menu [mixin]](#overflow-menu-mixin)
- [search [mixin]](#search-mixin)
- [text-input [mixin]](#text-input-mixin)
- [tile [mixin]](#tile-mixin)
- [tooltip--icon--legacy [mixin]](#tooltip--icon--legacy-mixin)
Expand Down Expand Up @@ -15060,7 +15059,7 @@ Data table core styles
padding-bottom: 0;
}

th.#{$prefix}--table-column-checkbox:hover {
.#{$prefix}--date-table tbody th.#{$prefix}--table-column-checkbox:hover {
background: $data-table-column-hover;
}

Expand Down Expand Up @@ -16797,13 +16796,6 @@ Dropdown styles

.#{$prefix}--dropdown--inline .#{$prefix}--dropdown-link {
font-weight: normal;
margin-right: $carbon--spacing-04;
margin-left: rem(10px);

&:focus {
margin: 0;
padding-left: rem(10px);
}
}

.#{$prefix}--dropdown--show-selected .#{$prefix}--dropdown--selected {
Expand Down Expand Up @@ -16952,17 +16944,27 @@ File uploader styles
margin-bottom: $carbon--spacing-05;
}

// For backwards compatibility
.#{$prefix}--file-btn ~ .#{$prefix}--file-container {
margin-top: $carbon--spacing-06;
}

.#{$prefix}--btn ~ .#{$prefix}--file-container {
margin-top: $carbon--spacing-05;
}

.#{$prefix}--file .#{$prefix}--file-container,
.#{$prefix}--file ~ .#{$prefix}--file-container {
margin-top: $carbon--spacing-03;
}

.#{$prefix}--file__selected-file {
display: grid;
grid-gap: $carbon--spacing-03 $carbon--spacing-05;
grid-gap: $carbon--spacing-05;
grid-template-columns: 1fr auto;
grid-auto-rows: auto;
align-items: center;
min-height: $carbon--spacing-07;
min-height: $carbon--spacing-09;
max-width: rem(320px);
margin-bottom: $carbon--spacing-03;
background-color: $field-01;
Expand Down Expand Up @@ -17010,22 +17012,20 @@ File uploader styles

.#{$prefix}--file__selected-file--invalid {
@include focus-outline('invalid');
outline-width: 1px;
padding: $carbon--spacing-04 0;
padding: $carbon--spacing-05 0;
}

.#{$prefix}--file__selected-file--invalid .#{$prefix}--form-requirement {
border-top: 1px solid $ui-03;
padding-top: $carbon--spacing-03;
padding-top: $carbon--spacing-05;
}

.#{$prefix}--file__selected-file--invalid
.#{$prefix}--form-requirement__title,
.#{$prefix}--file__selected-file--invalid
.#{$prefix}--form-requirement__supplement {
@include type-style('label-01');
padding-right: $carbon--spacing-03;
padding-left: $carbon--spacing-05;
padding: 0 $carbon--spacing-05;
}

.#{$prefix}--file__selected-file--invalid
Expand Down Expand Up @@ -17055,7 +17055,7 @@ File uploader styles
display: flex;
justify-content: center;
min-width: 1.5rem;
padding-right: $carbon--spacing-03;
padding-right: $carbon--spacing-05;

.#{$prefix}--loading__svg {
stroke: $ui-05;
Expand Down Expand Up @@ -17091,15 +17091,15 @@ File uploader styles
border: none;
cursor: pointer;
padding: 0;
fill: $icon-02;
fill: $icon-01;

&:focus {
@include focus-outline('border');
}
}

.#{$prefix}--file__state-container .#{$prefix}--file-close svg path {
fill: $icon-02;
fill: $icon-01;
}

.#{$prefix}--file__state-container .#{$prefix}--inline-loading__animation {
Expand Down Expand Up @@ -17139,14 +17139,13 @@ File uploader styles
- [text-02 [variable]](#text-02-variable)
- [carbon--spacing-05 [variable]](#carbon--spacing-05-variable)
- [carbon--spacing-06 [variable]](#carbon--spacing-06-variable)
- [carbon--spacing-07 [variable]](#carbon--spacing-07-variable)
- [carbon--spacing-09 [variable]](#carbon--spacing-09-variable)
- [field-01 [variable]](#field-01-variable)
- [carbon--spacing-04 [variable]](#carbon--spacing-04-variable)
- [ui-03 [variable]](#ui-03-variable)
- [ui-05 [variable]](#ui-05-variable)
- [interactive-04 [variable]](#interactive-04-variable)
- [icon-03 [variable]](#icon-03-variable)
- [icon-02 [variable]](#icon-02-variable)
- [icon-01 [variable]](#icon-01-variable)
- [ui-04 [variable]](#ui-04-variable)

## form
Expand Down Expand Up @@ -20934,8 +20933,7 @@ Search styles
width: rem(16px);
top: 50%;
transform: translateY(-50%);
// Ensure clear icon is rendered in Firefox (#1127)
fill: $text-02;
fill: $icon-02;
pointer-events: none;
}

Expand Down Expand Up @@ -21083,7 +21081,7 @@ Search styles
- [ui-04 [variable]](#ui-04-variable)
- [text-05 [variable]](#text-05-variable)
- [field-02 [variable]](#field-02-variable)
- [text-02 [variable]](#text-02-variable)
- [icon-02 [variable]](#icon-02-variable)
- [carbon--spacing-01 [variable]](#carbon--spacing-01-variable)
- [icon-01 [variable]](#icon-01-variable)
- [hover-field [variable]](#hover-field-variable)
Expand Down Expand Up @@ -24415,7 +24413,7 @@ UI shell header
}
}

.#{$prefix}--header__menu-bar[role='menubar'] {
.#{$prefix}--header__menu-bar {
display: flex;
height: 100%;
list-style: none;
Expand Down Expand Up @@ -24488,7 +24486,7 @@ UI shell header
transform: rotate(180deg);
}

.#{$prefix}--header__menu[role='menu'] {
.#{$prefix}--header__menu {
display: none;
list-style: none;
padding: 0;
Expand Down Expand Up @@ -25366,8 +25364,8 @@ UI shell side nav
> .#{$prefix}--side-nav__submenu:hover,
.#{$prefix}--side-nav__item:not(.#{$prefix}--side-nav__item--active)
> .#{$prefix}--side-nav__link:hover,
.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link[role='menuitem']:not(.#{$prefix}--side-nav__link--current):not([aria-current='page']):hover,
.#{$prefix}--side-nav__menu
a.#{$prefix}--side-nav__link:not(.#{$prefix}--side-nav__link--current):not([aria-current='page']):hover,
.#{$prefix}--side-nav a.#{$prefix}--header__menu-item:hover,
.#{$prefix}--side-nav
.#{$prefix}--header__menu-title[aria-expanded='true']:hover {
Expand Down Expand Up @@ -25471,34 +25469,31 @@ UI shell side nav
color: $ibm-color__gray-100;
}

.#{$prefix}--side-nav__menu[role='menu'] {
.#{$prefix}--side-nav__menu {
display: block;
visibility: hidden;
max-height: 0;
}

.#{$prefix}--side-nav__submenu[aria-expanded='true']
+ .#{$prefix}--side-nav__menu[role='menu'] {
+ .#{$prefix}--side-nav__menu {
max-height: rem(1500px);
visibility: inherit;
}

.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link[role='menuitem'] {
.#{$prefix}--side-nav__menu a.#{$prefix}--side-nav__link {
height: mini-units(4);
min-height: mini-units(4);
padding-left: mini-units(4);
font-weight: 400;
}

.#{$prefix}--side-nav__item.#{$prefix}--side-nav__item--icon
a.#{$prefix}--side-nav__link[role='menuitem'] {
a.#{$prefix}--side-nav__link {
padding-left: mini-units(9);
}
.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link--current,
.#{$prefix}--side-nav__menu[role='menu']
a.#{$prefix}--side-nav__link[aria-current='page'],
.#{$prefix}--side-nav__menu a.#{$prefix}--side-nav__link--current,
.#{$prefix}--side-nav__menu a.#{$prefix}--side-nav__link[aria-current='page'],
a.#{$prefix}--side-nav__link--current {
background-color: $ibm-color__gray-20;

Expand Down Expand Up @@ -25622,7 +25617,7 @@ UI shell side nav
}

.#{$prefix}--side-nav--fixed
.#{$prefix}--side-nav__menu[role='menu']
.#{$prefix}--side-nav__menu
a.#{$prefix}--side-nav__link {
padding-left: mini-units(4);
}
Expand Down
3 changes: 2 additions & 1 deletion packages/components/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ applications:
- name: carbon-dev-environment
memory: 64M
buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git
random-route: true
routes:
- route: vanilla.carbondesignsystem.com
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
padding-bottom: 0;
}

th.#{$prefix}--table-column-checkbox:hover {
.#{$prefix}--date-table tbody th.#{$prefix}--table-column-checkbox:hover {
background: $data-table-column-hover;
}

Expand Down
7 changes: 0 additions & 7 deletions packages/components/src/components/dropdown/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,6 @@

.#{$prefix}--dropdown--inline .#{$prefix}--dropdown-link {
font-weight: normal;
margin-right: $carbon--spacing-04;
margin-left: rem(10px);

&:focus {
margin: 0;
padding-left: rem(10px);
}
}

.#{$prefix}--dropdown--show-selected .#{$prefix}--dropdown--selected {
Expand Down
Loading

0 comments on commit 95f7ba3

Please sign in to comment.