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 +4 -4
- data/README.md +8 -4
- data/compressed/icons.json +842 -460
- data/lib/rails_heroicon/rails_heroicon.rb +25 -17
- data/lib/rails_heroicon/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7066330af025503037386934bb85b01ea667ac9023458537cb9b1db666454ac4
|
4
|
+
data.tar.gz: 1902d158e635fa54a3ede410b3660f73471d3fcc49b19cc7a864741b6cc1d3c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|