Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Big variant of Dropdown component #330

Merged
merged 2 commits into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 6.7.0

### Improvements

- Add new "Big" variant of Dropdown component. ([#328](https://github.com/18F/identity-style-guide/pull/328))

## 6.6.0

### Improvements
Expand Down
15 changes: 15 additions & 0 deletions docs/_components/form-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ Three text fields are the easiest way for users to enter most dates.

## Dropdowns

### Default

{% capture example %}
<label for="ab84" class="usa-label">Dropdown label</label>
<select id="ab84" class="usa-select">
Expand All @@ -107,6 +109,19 @@ Three text fields are the easiest way for users to enter most dates.
{% endcapture %}
{% include helpers/code-example.html code=example %}

### Big

{% capture example %}
<label for="vg01" class="usa-label">Dropdown label</label>
<select id="vg01" class="usa-select usa-select--big">
<option value>- Select -</option>
<option value="value1">Option A</option>
<option value="value2">Option B</option>
<option value="value3">Option C</option>
</select>
{% endcapture %}
{% include helpers/code-example.html code=example %}

## Radio buttons

Three styles of radio buttons are provided.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "identity-style-guide",
"version": "6.6.0",
"version": "6.7.0",
"description": "The global style of Login.gov",
"main": "./build/cjs/index.js",
"module": "./build/esm/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/scss/elements/form-controls/_all.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import 'dropdown';
@import 'global';
@import 'text-input';
6 changes: 6 additions & 0 deletions src/scss/elements/form-controls/_dropdown.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.usa-select.usa-select--big {
@include u-padding-x(2);
height: auto;
font-size: 1.25rem;
line-height: 1.5;
}
8 changes: 4 additions & 4 deletions src/scss/elements/form-controls/_text-input.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.usa-input--big,
.usa-textarea--big {
.usa-input.usa-input--big,
.usa-textarea.usa-textarea--big {
font-size: units(2.5);
line-height: 1.5;
}

.usa-input--big {
.usa-input.usa-input--big {
@include u-padding-x(2);
height: auto;
}

.usa-textarea--big {
.usa-textarea.usa-textarea--big {
height: 15rem;
}