@miljodirektoratet/md-css 3.2.0 → 3.3.0

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": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "CSS for Miljødirektoratet",
5
5
  "author": "Miljødirektoratet",
6
6
  "main": "./src/index.css",
@@ -9,7 +9,7 @@ See [Storybook](https://miljodir.github.io/md-components) for examples and more
9
9
  ## Tile horizontal
10
10
 
11
11
  ```html
12
- <a className="md-tile" href="{href}" onClick="{handleClick}">
12
+ <a className="md-tile [md-tile--secondary]" href="{href}" onClick="{handleClick}">
13
13
  <div className="md-tile__content">
14
14
  <div className="md-tile__content-icon">{icon}</div>
15
15
  <div className="md-tile__content-text">
@@ -28,7 +28,7 @@ See [Storybook](https://miljodir.github.io/md-components) for examples and more
28
28
 
29
29
  ```html
30
30
  <a
31
- className="md-tile-vertical [md-tile-vertical--small, md-tile-vertical--large]"
31
+ className="md-tile-vertical [md-tile-vertical--secondary, md-tile-vertical--small, md-tile-vertical--large]"
32
32
  href="{href}"
33
33
  onClick="{handleClick}"
34
34
  >
package/src/tile/tile.css CHANGED
@@ -12,9 +12,8 @@
12
12
  box-sizing: border-box;
13
13
  gap: 1.5em;
14
14
  text-align: start;
15
- width: 100%;
16
- max-width: 440px;
17
- min-width: 340px;
15
+ width: 440px;
16
+ max-width: 100%;
18
17
  transition: all 0.15s ease-in-out;
19
18
  }
20
19