rails_heroicon 1.0.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 700297031af5541e055b0d484935b800b5649f46fdd4ae9a6ca3151755b37f44
4
- data.tar.gz: 4d538d5a3031430f9208b3396bc5c8f3b24d857ec3a028513eb906f371ec8734
3
+ metadata.gz: 7066330af025503037386934bb85b01ea667ac9023458537cb9b1db666454ac4
4
+ data.tar.gz: 1902d158e635fa54a3ede410b3660f73471d3fcc49b19cc7a864741b6cc1d3c9
5
5
  SHA512:
6
- metadata.gz: dd3392d112311c134edab03c5dc208821247212b2a6e6d853659c7210289d1655659be05c6933da127119759b2a8633322cea18b7e28fa9281df091f5d5af99b
7
- data.tar.gz: 865dd0566b3fd3b835dcd1516b50863cc3b5626a5c223ee28cad42378ded0667b4ea8e1ca859940ed4291aae46125808871cfa3a2af741228fe5667d06b94e61
6
+ metadata.gz: 01d011fe25319a09ece1123468633742129add088978676ebb6d436d7d964bb2e4e260e5b75c87c023819642935046f707d4f811a915037bcfe030245c260772
7
+ data.tar.gz: 0bea7dda8f59600433cf0828405cc73504b028f0cc9848a00f6ab148e96c038f358fbe92e1adf166e43d8138169598d98e06d22e91362f370a93fc0d1077fe02
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Ruby on Rails views helper for the awesome heroicons by Steve Schoger. To see
4
4
  all the icons visit [heroicons](https://heroicons.com/).
5
5
 
6
- 230 icons included as of today.
6
+ 280 icons included as of today.
7
7
 
8
8
  > This gem has no official affiliation with [Tailwind Labs](https://github.com/tailwindlabs),
9
9
  > yet.
@@ -37,11 +37,13 @@ This will generate the following html:
37
37
 
38
38
  ```html
39
39
  <svg
40
+ aria-hidden="true"
40
41
  width="24"
41
42
  height="24"
42
43
  viewBox="0 0 24 24"
43
44
  fill="none"
44
45
  stroke="currentColor"
46
+ stroke-width="1.5"
45
47
  version="1.1"
46
48
  >
47
49
  <path
@@ -59,9 +61,11 @@ This will generate the following html:
59
61
  </svg>
60
62
  ```
61
63
 
64
+ > Note: Indentation is for readibility purpose.
65
+
62
66
  ### Variant
63
67
 
64
- `rails_heroicon` provides 2 variants, `outline` and `solid`, `outline` being
68
+ `rails_heroicon` provides 3 variants, `outline`, `solid`, and `mini`, `outline` being
65
69
  the default.
66
70
 
67
71
  To change the variant `<%= heroicon "user", variant: "solid" %>`.
@@ -84,8 +88,8 @@ need to set the `size` attribute on the helper method.
84
88
  <%= heroicon "user", size: 20 %>
85
89
  ```
86
90
 
87
- If the `variant` is set as `outline`, `size` automatically defaults to `24`,
88
- and if the `variant` is set as `solid`, `size` automatically defaults to `20`.
91
+ If the `variant` is set as `outline` or `solid`, `size` automatically defaults to `24`,
92
+ and if the `variant` is set as `mini`, `size` automatically defaults to `20`.
89
93
  However, this can be over-written with the `size` attribute.
90
94
 
91
95
  ### Accessibility