Story 91.2. UI Block – Secondary XXS buttons

General info

We should be able to this element on both POSTs(Journal Articles)

Screenshot 2024-05-07 at 12.58.29.png

and PAGEs

Screenshot 2024-05-07 at 12.58.37.png

User story

As an admin WordPress

I want to add the block with button

So that helps to make the pages and journal posts more interesting and useful for website users

Visual design

Figma: https://www.figma.com/file/6KT0tZfJw3u7R8b5pCH8vw/Saclab-Team-Library?type=design&node-id=4512%3A1337&mode=design&t=apJg6wUdi9sTMgXL-1 (Secondary XXS button)

Acceptance criteria

01

Given: Admin panel → Pages → Add New page

When: create/edit page
AND add a block called “Secondary XXS button”

Then: see the section in edit mode to adjust the settings of the block

Desktop:

Screenshot 2024-05-07 at 10.43.09.png

Mobile:

Screenshot 2024-05-07 at 10.44.39.png

02

Given: Admin panel → Posts → Add New post

When: create/edit post
AND add a block called “Secondary XXS button”

Then: see the section in edit mode to adjust the settings of the block

 

03

Given: edit mode of the block “Secondary XXS button”

When: add/edit 2 or more buttons (mandatory at least 2 buttons)
AND the ability to add a link to each button (mandatory)
AND options to choose open in the new tab
AND the ability to change the text of the button (mandatory)
AND autosave each change
AND click update the page

Then: see the updated content of the block on the website

 

04

Given: edit mode of the block “Secondary XXS button”

When: add long text on a button

Then: text jump on the second row

image-20240509-122853.png

05

Given: page/post on the website with block “Secondary XXS button” (desktop)

When: hover on a button

Then: see the hover effect according to the design

  

image-20240509-121947.png

06

Given: page/post on the website with block “Secondary XXS button” (mobile)

When: press a button

Then: see the press effect according to the design

image-20240509-121918.png

Comments

Leave a Reply