Skip to content

Commit

Permalink
fix(styles): Updates textfield labels/margins
Browse files Browse the repository at this point in the history
  • Loading branch information
schne324 committed Nov 6, 2020
1 parent 3eedbb9 commit 9064f27
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
4 changes: 0 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<script src="https://use.fontawesome.com/99d8f1b106.js"></script>
<link
href="https://fonts.googleapis.com/css2?family=Roboto"
rel="stylesheet"
/>
<title>Deque Cauldron React</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
Icon
} from '@deque/cauldron-react';
import logo from './assets/img/logo.svg';
import 'fontsource-roboto';

// styles
import '../packages/styles';
Expand Down
4 changes: 0 additions & 4 deletions docs/patterns/components/TextField/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.TextField button {
margin: 0;
}

.TextField .Field {
margin-bottom: 0;
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.5.1",
"file-loader": "^1.1.5",
"fontsource-roboto": "^3.0.3",
"html-webpack-plugin": "^3.2.0",
"husky": "^1.0.0-rc.14",
"jest-axe": "^3.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/styles/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ textarea.Field--has-error:focus,
display: block;
position: relative;
box-sizing: border-box;
margin-bottom: var(--space-large);
}

.Field.is--flex-row {
Expand Down Expand Up @@ -108,7 +107,7 @@ textarea.Field--has-error:focus,
text-align: left;
color: #333333;
font-size: var(--text-size-smaller);
font-weight: var(--font-weight-light);
font-weight: var(--font-weight-bold);
padding-bottom: var(--space-half);
cursor: default;
}
Expand All @@ -128,6 +127,7 @@ textarea.Field--has-error:focus,

.Field__required-text::before {
content: ' ';
color: var(--text-color-base);
}

.Field__label--has-error .Field__required-text {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5804,6 +5804,11 @@ follow-redirects@^1.0.0:
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db"
integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==

fontsource-roboto@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/fontsource-roboto/-/fontsource-roboto-3.0.3.tgz#99c312babeabce22b3e933b3edf2951d4508f4f7"
integrity sha512-kfsC9qAP6XhwnSDAhg2lhWeaUJfLGXZh7GcLxFiz/4lXdkV2pVhWv2Xp9ES3b3BHdc9UuPrWXXLOphzHIStcOw==

for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
Expand Down

0 comments on commit 9064f27

Please sign in to comment.