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 +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +8 -4
- data/compressed/icons.json +842 -460
- data/lib/rails_heroicon/rails_heroicon.rb +25 -17
- data/lib/rails_heroicon/railtie.rb +1 -1
- data/lib/rails_heroicon/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e2390944c49088b7c172e8946e773c5f19edd4af7d9492b3e30e0c790767133
|
4
|
+
data.tar.gz: 21a46ff6ea6b03509bb4a1b3967469fd79ba91bfe9e6bff7e4c1ad2cb34ded2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d7e87953e7ff701122171eaca3ba18b7d77cceb06c7d278e25a846cede189b3dfdff560bd4ef5f10ae14b9d1f7f4fc94c8507c766d51e3b232b72a42c07f54e
|
7
|
+
data.tar.gz: 5bdfe01d1bbba885e4ae4b8fa41e4d05cefbf16310f32b2bdb4f7797755b69e3acdd50834f9d4d24e550fd3a975411e36f1e7172be8c934adee363f8b4524551
|
data/LICENSE.txt
CHANGED
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
|
-
|
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
|
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 `
|
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
|