Automattic / Automattic/jetpack

Set default active tab for Donation Block

Open
#25,034 0 comments 1 reaction 0 assignees View on GitHub
[Block] Donations [Pri] Normal New Feature Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### What

The donation block has the is-active class set by default on the “one-time” heading which then triggers the content inside the tab to change. The suggestion is that we provide a way for the user to select or change the default tab (i.e. monthly, annually).

### Why

Currently, the only way to do this would be for the user to add custom JS through a plugin. This would erase that need.

### How

Markup 2022-02-01 at 14 31 27

Markup 2022-02-01 at 14 33 05

Contributor guide

Open the contributing guide

Research direction

Locate the Donation Block implementation and the logic that assigns the default is-active class to the one-time tab. Review the screenshots and trace how tab content changes. Done means users can select monthly or annually as the default tab without adding custom JavaScript.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, react, wordpress
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.