Skip to content

Commit 08c0fa3

Browse files
authored
Merge pull request #241 from wpaccessibility/233-remove-css-content-callout-blocks
233 Remove css content callout blocks
2 parents e90dfa0 + aa9129a commit 08c0fa3

File tree

60 files changed

+124
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+124
-132
lines changed

_sass/components/_callouts.scss

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,49 +19,44 @@ p.example {
1919
background: var(--color-informative-bg-document);
2020
border-left-color: var(--color-informative-border-default);
2121

22-
&::before {
23-
color: var(--color-informative-color-document);
24-
content: "Example";
22+
> strong {
23+
color: var(--color-informative-color-s);
2524
}
2625
}
2726

2827
p.alert {
2928
background: var(--color-warning-bg-document);
3029
border-left-color: var(--color-warning-border-default);
3130

32-
&::before {
33-
color: var(--color-warning-color-document);
34-
content: "Alert";
31+
> strong {
32+
color: var(--color-warning-color-subtle);
3533
}
3634
}
3735

3836
p.tip {
3937
background: var(--color-positive-bg-document);
4038
border-left-color: var(--color-positive-border-default);
4139

42-
&::before {
43-
color: var(--color-positive-color-document);
44-
content: "Tip";
40+
> strong {
41+
color: var(--color-positive-color-subtle);
4542
}
4643
}
4744

4845
p.info {
4946
background: var(--color-informative-bg-default);
5047
border-left-color: var(--color-informative-border-default);
5148

52-
&::before {
53-
color: var(--color-informative-color-document);
54-
content: "Info";
49+
> strong {
50+
color: var(--color-informative-color-subtle);
5551
}
5652
}
5753

5854
p.warning {
5955
background: var(--color-negative-bg-default);
6056
border-left-color: var(--color-negative-border-default);
6157

62-
&::before {
58+
> strong {
6359
color: var(--color-negative-color-subtle);
64-
content: "Warning";
6560
}
6661
}
6762

@@ -70,9 +65,8 @@ p.dont {
7065
border: 2px solid var(--color-negative-border-default);
7166
border-radius: $border-radius;
7267

73-
&::before {
68+
> strong {
7469
color: var(--color-negative-color-subtle);
75-
content: "Don't";
7670
}
7771
}
7872

@@ -81,7 +75,7 @@ p.do {
8175
border: 2px solid var(--color-positive-border-default);
8276
border-radius: $border-radius;
8377

84-
&::before {
85-
content: "Do";
78+
> strong {
79+
color: var(--color-positive-color-subtle);
8680
}
8781
}

docs/about/accessibility-statement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Please inform us!
1717
- or create an [issue in GitHub](https://github.com/wpaccessibility/wp-a11y-docs/issues/).
1818

1919
{: .callout .info }
20-
Please note: this is only for accessibility issues in **this website** and not for WordPress itself. If you find an accessibility issue in WordPress core, or in one of the core themes, please create a [new ticket on Make WordPress Core](https://core.trac.wordpress.org/newticket) and give it the focus “accessibility”.
20+
**Please note:** this is only for accessibility issues in **this website** and not for WordPress itself. If you find an accessibility issue in WordPress core, or in one of the core themes, please create a [new ticket on Make WordPress Core](https://core.trac.wordpress.org/newticket) and give it the focus “accessibility”.
2121

2222
## Known accessibility issues
2323

docs/contribute/github/content-kitchen-sink.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ has_video: true
1010
This page lists the options and code available for creating content in this documentation.
1111

1212
{: .callout .info }
13-
WordPress.org provides a lot of style guides for documentation: [WordPress Style Guides - highlights](https://make.wordpress.org/docs/style-guide/welcome/highlights/). We value most of all: be [kind and professional](docs/contribute/CODE_OF_CONDUCT.md) in your text and please write the text yourself or make sure the reader knows who you are citing.
13+
**Please note:** WordPress.org provides a lot of style guides for documentation: [WordPress Style Guides - highlights](https://make.wordpress.org/docs/style-guide/welcome/highlights/). We value most of all: be [kind and professional](docs/contribute/CODE_OF_CONDUCT.md) in your text and please write the text yourself or make sure the reader knows who you are citing.
1414

1515
## Headings
1616
```markdown
@@ -31,11 +31,11 @@ WordPress.org provides a lot of style guides for documentation: [WordPress Style
3131
###### This is an H6 heading
3232

3333
{: .callout .alert }
34-
In blog posts the H1 is added by the template: [Add a blog post]({{site.baseurl}}/docs/contribute/github/blog-post/).
34+
**Alert:** In blog posts the H1 is added by the template: [Add a blog post]({{site.baseurl}}/docs/contribute/github/blog-post/).
3535

3636
## Summary in a larger text font.
3737

38-
Start the paragraph with an H2 named "Summaty, or introduction and the callout {: .lead }`
38+
Start the paragraph with an H2 named "Summary, or introduction and the callout {: .lead }`
3939

4040

4141
```markdown
@@ -83,7 +83,7 @@ An image: ![Alt text](url)
8383
![Library]({{site.baseurl}}/assets/images/small-image.jpg)
8484

8585
{: .callout .tip }
86-
For more text options with Markdown read: [Basic writing and formatting syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) on GitHub.
86+
**Tip:** For more text options with Markdown read: [Basic writing and formatting syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) on GitHub.
8787

8888
## Videos
8989
This site uses the accessible media player Able Player.
@@ -166,54 +166,54 @@ For larger pieces of content, you can add to a `<p>`, `<div>`or even a landmark,
166166

167167
```markdown
168168
{: .callout .info }
169-
This is an informational message and uses the “info” callout.
169+
**Info:** This is an informational message and uses the “info” callout.
170170

171171
{: .callout .tip }
172-
Use the “tip” callout to highlight tips.
172+
**Tip:** Use the “tip” callout to highlight tips.
173173

174174
{: .callout .alert }
175-
The “alert” callout is for alerting readers to important messages.
175+
**Alert:** The “alert” callout is for alerting readers to important messages.
176176

177177
{: .callout .warning }
178-
When something is particularly precarious, use the “warning” callout.
178+
**Warning:** When something is particularly precarious, use the “warning” callout.
179179

180180
{: .callout .example }
181-
Give an example with the "example" callout.
181+
**Example:** Give an example with the "example" callout.
182182
The title of the callout will be "Example".
183183

184184
{: .callout .do }
185-
Example of good practice.
185+
**Do:** Example of good practice.
186186

187187
{: .callout .dont }
188-
Example of bad practice.
188+
**Don't:** Example of bad practice.
189189

190190
```
191191

192192
{: .callout .info }
193-
This is an informational message and uses the “info” callout.
193+
**Info:** This is an informational message and uses the “info” callout.
194194

195195
{: .callout .tip }
196-
Use the “tip” callout to highlight tips.
196+
**Tip:** Use the “tip” callout to highlight tips.
197197

198198
{: .callout .alert }
199-
The “alert” callout is for alerting readers to important messages.
199+
**Alert:** The “alert” callout is for alerting readers to important messages.
200200

201201
{: .callout .warning }
202-
When something is particularly precarious, use the “warning” callout.
202+
**Warning:** When something is particularly precarious, use the “warning” callout.
203203

204204
{: .callout .example }
205-
Give an example with the example. The title of the callout will be "Example".
205+
**Example:** Give an example with the example.
206206

207207
{: .callout .do }
208-
Example of how to do something. The title of the callout will be "Do".
208+
**Do:** Example of how to do something.
209209

210210
{: .callout .dont }
211-
Example of how not to do something. The title of the callout will be "Don't".
211+
**Don't:** Example of how not to do something.
212212

213213
### Labels
214214

215215
{: .callout .info }
216-
Note: these are not form labels, but text labels.
216+
**Please note:** These are not form labels, but text labels.
217217

218218

219219
```markdown

docs/contribute/github/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ We use the GitHub repository [wpaccessibility/wp-a11y-docs](https://github.com/w
1111
The project board [WP A11y docs](https://github.com/orgs/wpaccessibility/projects/3) contains all open issues and also the pull requests to review.
1212

1313
{: .callout .alert }
14-
Before you start writing new documentation, please let us know that you’d like to work on it, so we can assign the task to you. Content written without contacting the project leads first, will not be reviewed.
14+
**Alert:** Before you start writing new documentation, please let us know that you’d like to work on it, so we can assign the task to you. Content written without contacting the project leads first, will not be reviewed.
1515

1616

docs/contribute/report-error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ There are several ways you can report an error:
1515
- Open an issue in the GitHub repository [wpaccessibility/wp-a11y-docs](https://github.com/wpaccessibility/wp-a11y-docs/).
1616

1717
{: .callout .info }
18-
Please note: this is only for errors in the documentation or code in **wpaccessibility.org** and not for WordPress itself. If you find an accessibility issue in WordPress core, or in one of the core themes, please create a [new ticket on Make WordPress Core](https://core.trac.wordpress.org/newticket) and give it the focus “accessibility”.
18+
**Please note:** This is only for errors in the documentation or code in **wpaccessibility.org** and not for WordPress itself. If you find an accessibility issue in WordPress core, or in one of the core themes, please create a [new ticket on Make WordPress Core](https://core.trac.wordpress.org/newticket) and give it the focus “accessibility”.

docs/contribute/write.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ nav_order: 3
88
# Write documentation
99

1010
{: .callout .alert }
11-
Before you start writing new documentation, please let us know that you’d like to work on it, so we can assign the task to you. Content written without contacting the project leads first, will not be reviewed.
11+
**Alert:** Before you start writing new documentation, please let us know that you’d like to work on it, so we can assign the task to you. Content written without contacting the project leads first, will not be reviewed.
1212

1313
We keep track of the work on the documentation in the project board [WP A11y docs](https://github.com/orgs/wpaccessibility/projects/3).
1414

1515
{: .callout .tip }
16-
Please write the content yourself and use AI (artificial intelligence) only to translate or to check the quality of your English.
16+
**Tip:** Please write the content yourself and use AI (artificial intelligence) only to translate or to check the quality of your English.
1717

1818
To keep all pages in the same structure, please stick to the following formats for a blogpost or an accessibility topic.
1919

docs/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nav_order: 3
77
# Reading guide
88

99
{: .callout .alert }
10-
This content will be created later, when there is sufficient content to point to.
10+
**Alert:** This content will be created later, when there is sufficient content to point to.
1111
Help discuss how to create a useful reading guide for various target groups with comments on issue [GitHub #59
1212
Reading guide](https://github.com/wpaccessibility/wp-a11y-docs/issues/59).
1313

docs/legislation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ nav_order: 7
77
# Legislation
88

99
{: .callout .alert }
10-
This content will be written.
10+
**Alert:** This content will be written.
1111
Related issue on [GitHub #179 Intro page Legislation](https://github.com/wpaccessibility/wp-a11y-docs/issues/177).

docs/resources/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ nav_order: 9
77
# Resources on accessibility
88

99
{: .callout .alert }
10-
This content will be written.
10+
**Alert:** This content will be written.
1111
Related issue on [GitHub #181 Intro page Resources on accessibility](https://github.com/wpaccessibility/wp-a11y-docs/issues/181).

docs/start/at/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ nav_order: 5
88
# Assistive technology
99

1010
{: .callout .alert }
11-
This content will be written.
11+
**Alert:** This content will be written.
1212
Related issue on [GitHub #87 Assistive technology](https://github.com/wpaccessibility/wp-a11y-docs/issues/87).

0 commit comments

Comments
 (0)