-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
61 lines (44 loc) · 1.44 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
=== Toggles ===
Contributors: mamaduka
Tags: accordion, faq, details, block, blocks
Requires at least: 6.1
Tested up to: 6.2
Stable tag: 1.1.0
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
An easy way to hide and reveal content.
== Description ==
You can use this block to hide and reveal content as needed. Create FAQ pages, hide spoilers in posts, or create simple accordion elements.
The block uses `<details>` and `<summary>` HTML elements and doesn't require any additional JavaScript or CSS on the theme side.
== Frequently Asked Questions ==
= Want to change default styles? =
You can add some basic styling with just a few lines of CSS. Example:
`
.wp-block-toggles {
background: #fafafa;
border: 1px solid #eaeaea;
border-radius: 3px;
margin: 1.5rem 0;
padding: 0.5rem 1rem;
}
.wp-block-toggles summary {
cursor: pointer;
}
`
= Want to report a bug? =
Create an issue at the [Mamaduka/toggles](https://github.com/Mamaduka/toggles) repo.
== Screenshots ==
1. The block with no styles.
2. The block with custom styling.
3. Block Editor.
== Changelog ==
= 1.1.0 - 2023-06-17 =
* Bumped minimum required WordPress version to 6.1.
* Fixes an error when selecting deeply nested inner blocks.
* Block support enhancements.
= 1.0.1 - 2022-02-14 =
* Bumped minimum required WordPress version to 5.8.
* Pass component to `renderAppender`.
= 1.0.0 - 2021-02-05 =
* Initial release.