Skip to content

Commit

Permalink
Add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Dec 20, 2022
1 parent 87156bc commit 3c774ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/form-input/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"description": "The basic building block for forms.",
"keywords": [ "input", "form" ],
"textdomain": "default",
"icon": "forms",
"attributes": {
"type": {
"type": "string",
Expand Down
7 changes: 7 additions & 0 deletions packages/block-library/src/form-input/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const variations = [
{
name: 'text',
title: __( 'Text input' ),
icon: 'edit-page',
description: __( 'A generic text input.' ),
attributes: { type: 'text' },
isDefault: true,
Expand All @@ -17,6 +18,7 @@ const variations = [
{
name: 'textarea',
title: __( 'Textarea input' ),
icon: 'testimonial',
description: __(
'A textarea input to allow entering multiple lines of text.'
),
Expand All @@ -29,6 +31,7 @@ const variations = [
name: 'checkbox',
title: __( 'Checkbox input' ),
description: __( 'A simple checkbox input.' ),
icon: 'forms',
attributes: { type: 'checkbox' },
isDefault: true,
scope: [ 'inserter', 'transform' ],
Expand All @@ -37,6 +40,7 @@ const variations = [
{
name: 'email',
title: __( 'Email input' ),
icon: 'email',
description: __( 'Used for email addresses.' ),
attributes: { type: 'email' },
isDefault: true,
Expand All @@ -46,6 +50,7 @@ const variations = [
{
name: 'url',
title: __( 'URL input' ),
icon: 'admin-site',
description: __( 'Used for URLs.' ),
attributes: { type: 'url' },
isDefault: true,
Expand All @@ -55,6 +60,7 @@ const variations = [
{
name: 'tel',
title: __( 'Telephone input' ),
icon: 'phone',
description: __( 'Used for phone numbers.' ),
attributes: { type: 'tel' },
isDefault: true,
Expand All @@ -64,6 +70,7 @@ const variations = [
{
name: 'number',
title: __( 'Number input' ),
icon: 'edit-page',
description: __( 'A numeric input.' ),
attributes: { type: 'number' },
isDefault: true,
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/form-submit-button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"name": "core/form-submit-button",
"title": "Form submit button",
"category": "common",
"icon": "button",
"parent": [ "core/form" ],
"description": "A submission button for forms.",
"keywords": [ "submit", "button", "form" ],
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"description": "A form.",
"keywords": [ "container", "wrapper", "row", "section" ],
"textdomain": "default",
"icon": "feedback",
"attributes": {
"action": {
"type": "string",
Expand Down

1 comment on commit 3c774ed

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3739762643
📝 Reported issues:

Please sign in to comment.