scrivito_icon_box_widget 2.0.0 → 2.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 151cd309ac664b9647eeecf78c95a54945a820e8
|
4
|
+
data.tar.gz: cca3f508593712cc3dd62c85486902b92ef85f74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a84a77429608ab1be6bac690aaa7995c8cdd0fe9ba3fd2a62dbe4906b134a2c7b764992814e640a558d75c23b1c75d3709456a9fb80c05709de08ab3c419a4b5
|
7
|
+
data.tar.gz: abf5c72b03c7a0cd02ddcc458e8ffc1aac4f27161ae50943eca886b35397941782a722eead78e397e3beee6e8020e766f644214dbf336e33b71c51843ff490ac
|
@@ -2,6 +2,7 @@ class IconBoxWidget < Widget
|
|
2
2
|
attribute :icon, :string
|
3
3
|
attribute :color, :string
|
4
4
|
attribute :background_color, :string
|
5
|
+
attribute :label, :string
|
5
6
|
attribute :size, :enum, values: ["small","medium","large"], default: 'large'
|
6
7
|
attribute :style, :enum, values: ["circle","square","filled-circle","filled-square"], default: 'circle'
|
7
8
|
|
@@ -2,6 +2,10 @@
|
|
2
2
|
<%= render 'icon_box_widget/partials/icons_picker', widget: widget, attribute: :icon %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
+
<%= scrivito_details_for t('scrivito_icon_box_widget.details.label', default: 'Label for accessibility') do %>
|
6
|
+
<%= scrivito_tag :div, widget, :label %>
|
7
|
+
<% end %>
|
8
|
+
|
5
9
|
<%= scrivito_details_for t('scrivito_icon_box_widget.details.size', default: 'Size') do %>
|
6
10
|
<%= scrivito_tag(:div, widget, :size) %>
|
7
11
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<div class="<%= widget.background_classes %>">
|
2
|
-
<i class="<%= widget.icon_classes %>"></i>
|
1
|
+
<div class="<%= widget.background_classes %>" aria-label="<%= widget.label %>">
|
2
|
+
<i class="<%= widget.icon_classes %>" aria-hidden="true"></i>
|
3
3
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_icon_box_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.
|
72
|
+
rubygems_version: 2.5.1
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Widget for scrivito to display an icon in a box.
|