Skip to content

Commit

Permalink
FFE-110. Add .ffe-dropdown--sm class
Browse files Browse the repository at this point in the history
This commit adds a --sm modifier class to remove the minimum width
from the dropdown. This modifier can be used for dropdowns asking
for a particular day of the month or other things of that nature.
  • Loading branch information
Kristofer Selbekk committed Nov 14, 2016
1 parent 6004ce0 commit 9927837
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Changelog

## v3.1.0
* Added class `.ffe-dropdown--sm` to support narrow dropdowns.

## v3.0.1
* Added padding for large text to checkbox label
* Added padding for large text to checkbox

## v3.0.0
* **Potentially breaking change:** Responsive implementation of ffe-input-field and ffe-dropdown.
Expand Down
4 changes: 4 additions & 0 deletions less/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,8 @@
width: auto;
display: inline-block;
}

&--sm {
min-width: auto;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffe-form",
"version": "3.0.1",
"version": "3.1.0",
"description": "Form-/skjemapakke for Felles Front End",
"main": "less/form.less",
"scripts": {
Expand Down

0 comments on commit 9927837

Please sign in to comment.