Skip to content

Commit

Permalink
fix(form-element): Backport hyphenation fix on labels (#3578)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonferrua authored and engai committed Nov 19, 2018
1 parent 92a5956 commit 077d695
Show file tree
Hide file tree
Showing 69 changed files with 18,941 additions and 188 deletions.
3,453 changes: 3,453 additions & 0 deletions ui/components/app-launcher/__tests__/__snapshots__/index.spec.js.snap

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions ui/components/app-launcher/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import {

import createHelpers from '../../../../jest.helpers';

const { matchesMarkupAndStyle } = createHelpers(__dirname);
const { matchesMarkup } = createHelpers(__dirname);

it('renders a default app launcher', () =>
matchesMarkupAndStyle(
matchesMarkup(
<div className="demo-only" style={{ height: '800px' }}>
<AppLauncherModal
appTiles={appTiles}
Expand All @@ -32,7 +32,7 @@ it('renders a default app launcher', () =>
));

it('renders an app tile with a tooltip', () =>
matchesMarkupAndStyle(
matchesMarkup(
<AppLauncherTile
figureClass="slds-icon-custom-27"
objectInitials="SC"
Expand All @@ -45,7 +45,7 @@ it('renders an app tile with a tooltip', () =>
));

it('renders a grabbed app launcher', () =>
matchesMarkupAndStyle(
matchesMarkup(
<div className="demo-only" style={{ height: '800px' }}>
<AppLauncherModal
appTiles={appTilesGrabbed}
Expand All @@ -60,7 +60,7 @@ it('renders a grabbed app launcher', () =>
));

it('renders a moved app launcher', () =>
matchesMarkupAndStyle(
matchesMarkup(
<div className="demo-only" style={{ height: '800px' }}>
<AppLauncherModal
appTiles={appTilesMoved}
Expand All @@ -74,7 +74,7 @@ it('renders a moved app launcher', () =>
));

it('renders a dropped app launcher', () =>
matchesMarkupAndStyle(
matchesMarkup(
<div className="demo-only" style={{ height: '800px' }}>
<AppLauncherModal
appTiles={appTilesDropped}
Expand All @@ -88,7 +88,7 @@ it('renders a dropped app launcher', () =>
));

it('renders a search app launcher', () =>
matchesMarkupAndStyle(
matchesMarkup(
<div className="demo-only" style={{ height: '800px' }}>
<AppLauncherModal
appTiles={appTilesSearch}
Expand Down
8 changes: 4 additions & 4 deletions ui/components/checkbox-button-group/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Checkbox, CheckboxGroup, Fieldset } from '../base/example';

import createHelpers from '../../../../jest.helpers';

const { matchesMarkupAndStyle } = createHelpers(__dirname);
const { matchesMarkup } = createHelpers(__dirname);

xit('renders a default checkbox button group', () =>
matchesMarkupAndStyle(
matchesMarkup(
<Fieldset>
<CheckboxGroup>
<Checkbox id="monday">Mon</Checkbox>
Expand All @@ -20,7 +20,7 @@ xit('renders a default checkbox button group', () =>
));

xit('renders a default checkbox button group with error', () =>
matchesMarkupAndStyle(
matchesMarkup(
<Fieldset className="slds-has-error">
<CheckboxGroup>
<Checkbox errorId="error_01" id="monday">
Expand All @@ -46,7 +46,7 @@ xit('renders a default checkbox button group with error', () =>
));

xit('renders a disabled checkbox button group', () =>
matchesMarkupAndStyle(
matchesMarkup(
<Fieldset>
<CheckboxGroup>
<Checkbox id="monday" disabled="true">
Expand Down
8 changes: 4 additions & 4 deletions ui/components/checkbox-toggle/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {

import createHelpers from '../../../../jest.helpers';

const { matchesMarkupAndStyle } = createHelpers(__dirname);
const { matchesMarkup } = createHelpers(__dirname);

xit('renders a default checkbox toggle', () =>
matchesMarkupAndStyle(<CheckboxToggle />));
matchesMarkup(<CheckboxToggle />));

xit('renders a checked checkbox toggle', () =>
matchesMarkupAndStyle(<CheckboxToggleChecked />));
matchesMarkup(<CheckboxToggleChecked />));

xit('renders a disabled checkbox toggle', () =>
matchesMarkupAndStyle(<CheckboxToggleDisabled />));
matchesMarkup(<CheckboxToggleDisabled />));
Loading

0 comments on commit 077d695

Please sign in to comment.