Skip to content

Commit 78a66c0

Browse files
committed
Add credit card icon
1 parent 6b8ff5d commit 78a66c0

File tree

7 files changed

+41
-4
lines changed

7 files changed

+41
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vanilla-framework",
3-
"version": "4.18.5",
3+
"version": "4.19.0",
44
"author": {
55
"email": "webteam@canonical.com",
66
"name": "Canonical Webteam"

releases.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- version: 4.19.0
2+
features:
3+
- component: Icons / Credit card
4+
url: /docs/patterns/icons#new-icons
5+
status: New
6+
notes: We've added new credit card icon.
17
- version: 4.18.0
28
features:
39
- component: Quote wrapper

scss/_base_icon-definitions.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,3 +1471,18 @@
14711471
@mixin vf-icon-website-themed {
14721472
@include vf-themed-icon($light-value: vf-icon-website-url($colors--light-theme--icon), $dark-value: vf-icon-website-url($colors--dark-theme--icon));
14731473
}
1474+
1475+
// ICONS ADDED IN JANUARY 2025 v4.19.0
1476+
1477+
// credit card
1478+
@function vf-icon-credit-card-url($color) {
1479+
@return url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill='#{vf-url-friendly-color($color)}' fill-rule='evenodd' d='M13 4.5H3c-.27614 0-.5.22386-.5.5v.75h11V5c0-.27614-.2239-.5-.5-.5ZM2.5 11V7.25h11V11c0 .2761-.2239.5-.5.5H3c-.27614 0-.5-.2239-.5-.5ZM3 3c-1.10457 0-2 .89543-2 2v6c0 1.1046.89543 2 2 2h10c1.1046 0 2-.8954 2-2V5c0-1.10457-.8954-2-2-2H3Zm7.75 5.5c-.4142 0-.75.33579-.75.75v.5c0 .4142.3358.75.75.75h.5c.4142 0 .75-.3358.75-.75v-.5c0-.41421-.3358-.75-.75-.75h-.5Z' clip-rule='evenodd'/%3E%3C/svg%3E");
1480+
}
1481+
1482+
@mixin vf-icon-credit-card($color) {
1483+
background-image: vf-icon-credit-card-url($color);
1484+
}
1485+
1486+
@mixin vf-icon-credit-card-themed {
1487+
@include vf-themed-icon($light-value: vf-icon-credit-card-url($colors--light-theme--icon), $dark-value: vf-icon-credit-card-url($colors--dark-theme--icon));
1488+
}

scss/_patterns_icons.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,4 +2042,13 @@
20422042
}
20432043
}
20442044

2045+
// ICONS ADDED IN JANUARY 2025
2046+
2047+
@mixin vf-p-icon-credit-card {
2048+
.p-icon--credit-card {
2049+
@extend %icon;
2050+
@include vf-icon-credit-card-themed;
2051+
}
2052+
}
2053+
20452054
// **Base and Pattern mixins accurate as of October 2024**

scss/standalone/patterns_icons-additional.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
@include vf-p-icon-contextual-menu;
4343
@include vf-p-icon-controllers;
4444
@include vf-p-icon-copy-to-clipboard;
45+
@include vf-p-icon-credit-card;
4546
@include vf-p-icon-cursor;
4647
@include vf-p-icon-desktop;
4748
@include vf-p-icon-disconnect;

templates/docs/examples/patterns/icons/icons-additional.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@
154154
<i class="p-icon--upload is-dark"></i>
155155
<i class="p-icon--usb is-dark"></i>
156156
<i class="p-icon--website is-dark"></i>
157+
158+
<!-- Icons added in January 2025 v4.19 -->
159+
<i class="p-icon--credit-card is-dark"></i>
157160
</div>
158161

159162
<div>
@@ -304,5 +307,8 @@
304307
<i class="p-icon--upload"></i>
305308
<i class="p-icon--usb"></i>
306309
<i class="p-icon--website"></i>
310+
311+
<!-- Icons added in January 2025 v4.19 -->
312+
<i class="p-icon--credit-card"></i>
307313
</div>
308314
{% endblock %}

templates/docs/patterns/icons/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ context:
2222

2323
{% set status_icons = ['error', 'warning', 'success', 'information'] %}
2424

25-
{% set additional_icons = ['applications', 'controllers', 'fullscreen', 'models', 'machines', 'pin', 'units', 'priority-critical', 'priority-high', 'priority-low', 'priority-medium', 'priority-negligible', 'priority-unknown', 'add-canvas', 'add-logical-volume', 'add-partition', 'back-to-top', 'begin-downloading', 'bundle', 'canvas', 'change-version', 'comments', 'conflict-grey', 'conflict-resolution-grey', 'conflict-resolution', 'conflict', 'connected', 'containers', 'copy-to-clipboard', 'desktop', 'disconnect', 'edit', 'export', 'exposed', 'filter', 'fork', 'get-link', 'halfscreen-bar', 'highlight-off', 'highlight-on', 'home', 'import', 'in-progress', 'inspector-debug', 'loading-steps', 'lock-locked-active', 'lock-locked', 'lock-unlock', 'maximise-bar', 'minimise-bar', 'mount-2', 'mount', 'open-terminal', 'pause', 'plans', 'play', 'pods', 'power-error', 'power-off', 'power-on', 'profile', 'restart', 'revisions', 'security', 'settings', 'sort-both', 'sort-down', 'sort-up', 'starred', 'status-failed-small', 'status-in-progress-small', 'status-in-progress', 'status-queued-small', 'status-queued', 'status-succeeded-small', 'status-waiting-small', 'status-waiting', 'status', 'stop', 'submit-bug', 'switcher-dashboard', 'switcher-environments', 'switcher', 'tag', 'task-outstanding', 'timed-out-grey', 'timed-out', 'topic', 'unit-pending', 'unit-running', 'unmount', 'unstarred', 'user-group', 'video-play', 'warning-grey'] %}
25+
{% set additional_icons = ['applications', 'controllers', 'fullscreen', 'models', 'machines', 'pin', 'units', 'priority-critical', 'priority-high', 'priority-low', 'priority-medium', 'priority-negligible', 'priority-unknown', 'add-canvas', 'add-logical-volume', 'add-partition', 'back-to-top', 'begin-downloading', 'bundle', 'canvas', 'change-version', 'comments', 'conflict-grey', 'conflict-resolution-grey', 'conflict-resolution', 'conflict', 'connected', 'containers', 'copy-to-clipboard', 'desktop', 'disconnect', 'edit', 'export', 'exposed', 'filter', 'fork', 'get-link', 'halfscreen-bar', 'highlight-off', 'highlight-on', 'home', 'import', 'in-progress', 'inspector-debug', 'loading-steps', 'lock-locked-active', 'lock-locked', 'lock-unlock', 'maximise-bar', 'minimise-bar', 'mount-2', 'mount', 'open-terminal', 'pause', 'plans', 'play', 'pods', 'power-error', 'power-off', 'power-on', 'profile', 'restart', 'revisions', 'security', 'settings', 'sort-both', 'sort-down', 'sort-up', 'starred', 'status-failed-small', 'status-in-progress-small', 'status-in-progress', 'status-queued-small', 'status-queued', 'status-succeeded-small', 'status-waiting-small', 'status-waiting', 'status', 'stop', 'submit-bug', 'switcher-dashboard', 'switcher-environments', 'switcher', 'tag', 'task-outstanding', 'timed-out-grey', 'timed-out', 'topic', 'unit-pending', 'unit-running', 'unmount', 'unstarred', 'user-group', 'video-play', 'warning-grey', 'archive', 'arrow-bottom-left', 'arrow-bottom-right', 'arrow-down', 'arrow-left', 'arrow-right', 'arrow-top-left', 'arrow-top-right', 'arrow-up', 'blueprint', 'book', 'certificate', 'certification', 'cluster-host', 'contact', 'contextual-menu', 'cursor', 'file-blank', 'file', 'folder', 'gift', 'image', 'iso', 'log-out', 'map', 'notifications', 'location', 'private-key', 'profiles', 'repository', 'security-error', 'security-tick', 'security-warning', 'select-add', 'select-remove', 'select', 'single-host', 'snapshot', 'snooze', 'statistics', 'thumbs-down', 'thumbs-up', 'tidy', 'toggle-side-nav', 'turn-off-notification', 'upload', 'usb', 'website'] %}
2626

27-
{% set additional_icons_new = ['archive', 'arrow-bottom-left', 'arrow-bottom-right', 'arrow-down', 'arrow-left', 'arrow-right', 'arrow-top-left', 'arrow-top-right', 'arrow-up', 'blueprint', 'book', 'certificate', 'certification', 'cluster-host', 'contact', 'contextual-menu', 'cursor', 'file-blank', 'file', 'folder', 'gift', 'image', 'iso', 'log-out', 'map', 'notifications', 'location', 'private-key', 'profiles', 'repository', 'security-error', 'security-tick', 'security-warning', 'select-add', 'select-remove', 'select', 'single-host', 'snapshot', 'snooze', 'statistics', 'thumbs-down', 'thumbs-up', 'tidy', 'toggle-side-nav', 'turn-off-notification', 'upload', 'usb', 'website'] %}
27+
{% set additional_icons_new = ['credit-card'] %}
2828

2929
{% set social_icons = ['facebook', 'instagram', 'twitter', 'linkedin', 'youtube', 'github', 'rss', 'email'] %}
3030

@@ -103,7 +103,7 @@ Outside of the standard set, additional icons are available for use, and need to
103103

104104
{{ icon_section(additional_icons, 'light')}}
105105

106-
<span id="new-icons" class="p-status-label--positive">New</span> In Vanilla 4.17.0 we introduced additional icons listed below.
106+
<span id="new-icons" class="p-status-label--positive">New</span> In Vanilla 4.19.0 we introduced additional icons listed below.
107107

108108
{{ icon_section(additional_icons_new, 'light')}}
109109

0 commit comments

Comments
 (0)