Problem/Motivation

Acceptance criteria

AC 1 - Message available

Given I am a Content Author

When I open the components dropdown to add a new paragraph component

Then there is a component available called Message
And it’s located in alphabetical order below the Campaign

AC 2 - Message fields
GIVEN I’m a Content Author
WHEN I create a Message
THEN I see the following fields/elements:

  1. Type: select, required
    1. Information
    2. Success
    3. Warning
    4. Error
  2. Title: textfield, not required
  3. Rich text: not required
  4. Theme: radio, required
  5. Vertical space: select, required
  6. Background: checkbox, not required

AC 3 - Theme
Given I am a Content Author

When I create a Message
Then the Light and Dark settings radio buttons are present
And the default is Light

AC 4 - Vertical spacing

Given I am a Content Author

When I create a Message
Then the vertical space widget is available
And the options are None, Top, Bottom, Both
And it's set to Bottom by default

AC 5 - Background

Given I am a Content Author

When I create a Message
Then the checkbox is present
And the help text is Apply a themed background colour and provide horizontal spacing to the component
And it's unchecked by default

Proposed resolution

CommentFileSizeAuthor
#21 message-fields.png359.51 KBdanielgry
#21 message-component.png183.95 KBdanielgry

Issue fork civictheme-3507328

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fionamorrison23 created an issue. See original summary.

febdao’s picture

Hi @fiona,
Let me know if you are happy for me to pick up this issue.

fionamorrison23’s picture

Assigned: Unassigned » febdao
fionamorrison23’s picture

Title: Content message - new paragraph component » Message - new paragraph component
Issue summary: View changes
fionamorrison23’s picture

fionamorrison23’s picture

Issue summary: View changes
fionamorrison23’s picture

Issue summary: View changes
fionamorrison23’s picture

febdao’s picture

Hi Fiona,
The Message paragraph component has been implemented.
Please take a look at my PR https://github.com/civictheme/monorepo-drupal/pull/1340

Cheers,

fionamorrison23’s picture

fionamorrison23’s picture

Issue summary: View changes
fionamorrison23’s picture

fionamorrison23’s picture

Version: 1.9.0 » 1.x-dev
fionamorrison23’s picture

fionamorrison23’s picture

Assigned: febdao » richardgaunt
Status: Active » Needs review

richardgaunt’s picture

richardgaunt’s picture

Assigned: richardgaunt » danielgry

  • febdao authored 58d0d9ed on 1.x
    Issue #3507328: Message - new paragraph component (#1340)
    
    Co-authored-...
fionamorrison23’s picture

Issue summary: View changes
danielgry’s picture

StatusFileSize
new183.95 KB
new359.51 KB

Verified and tested on 1.x-dev

Testing Results:
1. Message component appears in the Add component list and is alphabetically placed below Campaign
2. All fields are correctly present under the message component
3. Theme radios are Light/Dark with Light as default
4. Vertical spacing options are None/Top/Bottom/Both with Bottom as default
5. Background checkbox is unchecked by default, and the help text is correct.

Screenshots:
AC 1
image

AC 2, 3, 4, 5
image

danielgry’s picture

Assigned: danielgry » richardgaunt
Status: Needs review » Reviewed & tested by the community
fionamorrison23’s picture

Version: 1.x-dev » 1.12.0
Assigned: richardgaunt » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.