@miljodirektoratet/md-css 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miljodirektoratet/md-css",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "CSS for Miljødirektoratet",
5
5
  "author": "Miljødirektoratet",
6
6
  "main": "./src/index.css",
@@ -12,6 +12,10 @@
12
12
  width: 260px;
13
13
  }
14
14
 
15
+ .md-select__container {
16
+ position: relative;
17
+ }
18
+
15
19
  .md-select__label {
16
20
  display: flex;
17
21
  align-items: flex-end;
@@ -92,10 +96,12 @@
92
96
  }
93
97
 
94
98
  .md-select__dropdown {
99
+ position: absolute;
95
100
  max-height: 0;
96
101
  overflow: hidden;
97
102
  opacity: 0;
98
103
  transition: max-height .5s ease-in-out;
104
+ width: calc(100% - 4px); /* Full width minus border-width */
99
105
  }
100
106
 
101
107
  .md-select__dropdown-item {