Skip to content

Commit

Permalink
Merge branch 'master' into upgrade-downshift-dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Feb 17, 2020
2 parents 7d09374 + aa276b2 commit ae94219
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
28 changes: 15 additions & 13 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -6084,6 +6084,7 @@ $interactive-04: if(
- [file-uploader [mixin]](#file-uploader-mixin)
- [inline-loading [mixin]](#inline-loading-mixin)
- [loading [mixin]](#loading-mixin)
- [progress-indicator [mixin]](#progress-indicator-mixin)
- [slider [mixin]](#slider-mixin)
- [tabs [mixin]](#tabs-mixin)

Expand Down Expand Up @@ -6393,6 +6394,7 @@ $text-02: if(
- [modal [mixin]](#modal-mixin)
- [overflow-menu [mixin]](#overflow-menu-mixin)
- [pagination [mixin]](#pagination-mixin)
- [progress-indicator [mixin]](#progress-indicator-mixin)
- [tabs [mixin]](#tabs-mixin)
- [toggle [mixin]](#toggle-mixin)
- [toolbar [mixin]](#toolbar-mixin)
Expand Down Expand Up @@ -20464,11 +20466,12 @@ Progress indicator styles
height: $carbon--spacing-05;
border-radius: 50%;
margin: 9px $carbon--spacing-03 0 0;
fill: $interactive-01;
fill: $interactive-04;
}

.#{$prefix}--progress-label {
@include type-style('body-short-01');
color: $text-01;
line-height: 1.45;
max-width: rem(88px);
margin: $carbon--spacing-03 0 0 0;
Expand Down Expand Up @@ -20546,7 +20549,7 @@ Progress indicator styles
left: 0;
margin-left: $carbon--spacing-06;
margin-top: rem(28px);
color: $text-01;
color: $text-02;
text-align: start;
}

Expand All @@ -20558,8 +20561,8 @@ Progress indicator styles
}

.#{$prefix}--progress-step--current svg {
stroke: $interactive-01;
fill: $interactive-01;
stroke: $interactive-04;
fill: $interactive-04;

path:last-of-type {
stroke-width: 40%;
Expand Down Expand Up @@ -20640,12 +20643,11 @@ Progress indicator styles
width: rem(40px);
}

.#{$prefix}--progress--vertical {
display: block;
}
// Vertical Variant

.#{$prefix}--progress--vertical .#{$prefix}--progress-step {
padding-bottom: rem(24px);
.#{$prefix}--progress--vertical {
display: flex;
flex-direction: column;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-step,
Expand Down Expand Up @@ -20685,12 +20687,10 @@ Progress indicator styles

.#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
margin-top: auto;
position: initial;
margin-left: 2.25rem;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-line {
top: 0;
left: 0;
height: 100%;
width: 1px;
Expand All @@ -20705,11 +20705,13 @@ Progress indicator styles
- [prefix [variable]](#prefix-variable)
- [carbon--spacing-05 [variable]](#carbon--spacing-05-variable)
- [carbon--spacing-03 [variable]](#carbon--spacing-03-variable)
- [interactive-01 [variable]](#interactive-01-variable)
- [interactive-04 [variable]](#interactive-04-variable)
- [text-01 [variable]](#text-01-variable)
- [link-01 [variable]](#link-01-variable)
- [interactive-01 [variable]](#interactive-01-variable)
- [carbon--spacing-06 [variable]](#carbon--spacing-06-variable)
- [inverse-01 [variable]](#inverse-01-variable)
- [text-01 [variable]](#text-01-variable)
- [text-02 [variable]](#text-02-variable)
- [ui-05 [variable]](#ui-05-variable)
- [ui-03 [variable]](#ui-03-variable)
- [support-01 [variable]](#support-01-variable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@
height: $carbon--spacing-05;
border-radius: 50%;
margin: 9px $carbon--spacing-03 0 0;
fill: $interactive-01;
fill: $interactive-04;
}

.#{$prefix}--progress-label {
@include type-style('body-short-01');
color: $text-01;
line-height: 1.45;
max-width: rem(88px);
margin: $carbon--spacing-03 0 0 0;
Expand Down Expand Up @@ -131,7 +132,7 @@
left: 0;
margin-left: $carbon--spacing-06;
margin-top: rem(28px);
color: $text-01;
color: $text-02;
text-align: start;
}

Expand All @@ -143,8 +144,8 @@
}

.#{$prefix}--progress-step--current svg {
stroke: $interactive-01;
fill: $interactive-01;
stroke: $interactive-04;
fill: $interactive-04;

path:last-of-type {
stroke-width: 40%;
Expand Down Expand Up @@ -225,12 +226,11 @@
width: rem(40px);
}

.#{$prefix}--progress--vertical {
display: block;
}
// Vertical Variant

.#{$prefix}--progress--vertical .#{$prefix}--progress-step {
padding-bottom: rem(24px);
.#{$prefix}--progress--vertical {
display: flex;
flex-direction: column;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-step,
Expand Down Expand Up @@ -270,12 +270,10 @@

.#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
margin-top: auto;
position: initial;
margin-left: 2.25rem;
}

.#{$prefix}--progress--vertical .#{$prefix}--progress-line {
top: 0;
left: 0;
height: 100%;
width: 1px;
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/NumberInput/NumberInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ class NumberInput extends Component {
disabled: false,
hideLabel: false,
iconDescription: 'choose a number',
label: ' ',
step: 1,
invalid: false,
invalidText: 'Provide invalidText',
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class Tooltip extends Component {
evt.target &&
this._tooltipEl &&
this._tooltipEl.contains(evt.target);
if (!shouldPreventClose) {
if (!shouldPreventClose && this.state.open) {
this._handleUserInputOpenClose(evt, { open: false });
}
};
Expand Down
5 changes: 3 additions & 2 deletions packages/react/src/components/UIShell/HeaderMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ class HeaderMenu extends React.Component {
const itemTriggeredBlur = this.items.find(
element => element === event.relatedTarget
);

if (
event.relatedTarget &&
(event.relatedTarget.getAttribute('href') !== '#' || itemTriggeredBlur)
((event.relatedTarget.getAttribute('href') &&
event.relatedTarget.getAttribute('href') !== '#') ||
itemTriggeredBlur)
) {
return;
}
Expand Down

0 comments on commit ae94219

Please sign in to comment.