Automattic / Automattic/jetpack
Set default active tab for Donation Block
- 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


Contributor 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