rails_heroicon 1.0.4 → 2.0.2

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: 1e2390944c49088b7c172e8946e773c5f19edd4af7d9492b3e30e0c790767133
4
+ data.tar.gz: 21a46ff6ea6b03509bb4a1b3967469fd79ba91bfe9e6bff7e4c1ad2cb34ded2f
5
5
  SHA512:
6
- metadata.gz: dd3392d112311c134edab03c5dc208821247212b2a6e6d853659c7210289d1655659be05c6933da127119759b2a8633322cea18b7e28fa9281df091f5d5af99b
7
- data.tar.gz: 865dd0566b3fd3b835dcd1516b50863cc3b5626a5c223ee28cad42378ded0667b4ea8e1ca859940ed4291aae46125808871cfa3a2af741228fe5667d06b94e61
6
+ metadata.gz: 0d7e87953e7ff701122171eaca3ba18b7d77cceb06c7d278e25a846cede189b3dfdff560bd4ef5f10ae14b9d1f7f4fc94c8507c766d51e3b232b72a42c07f54e
7
+ data.tar.gz: 5bdfe01d1bbba885e4ae4b8fa41e4d05cefbf16310f32b2bdb4f7797755b69e3acdd50834f9d4d24e550fd3a975411e36f1e7172be8c934adee363f8b4524551
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 abeidahmed
3
+ Copyright (c) 2022 abeidahmed
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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