Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content - Text-level Modifiers - Created Example Pages #2211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebastianBurke
Copy link
Contributor

Related to WET-401

@SebastianBurke SebastianBurke temporarily deployed to github-ci July 21, 2023 23:06 — with GitHub Actions Inactive
@duboisp duboisp added the Query: Project item Part of a github project label Sep 21, 2023
Copy link
Member

@duboisp duboisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the inline change request.

In summary:

  • Need to reorganize the page where each style do have their own section
  • Expand each style associated with "text-*"
  • Remove the text style related to the color because they are demoed elsewhere.
  • Reuse/copy the example for the stretch link from the wet-boew utilities page.

Regarding the text alignment, take out the example from this page and move it inside your page. Note that you may need to adjust the heading according to your page structure. See the technique here for more info: https://www.w3.org/WAI/WCAG21/Techniques/html/H42

May be it could help you to view and test those web page by using the Github pages. Let me know when you will be available, I will show it. It should take only 5 min.

common/text-level-modifiers/text-level-modifiers-en.html Outdated Show resolved Hide resolved
common/text-level-modifiers/text-level-modifiers-en.html Outdated Show resolved Hide resolved
common/text-level-modifiers/text-level-modifiers-en.html Outdated Show resolved Hide resolved
common/text-level-modifiers/text-level-modifiers-en.html Outdated Show resolved Hide resolved
common/text-level-modifiers/text-level-modifiers-en.html Outdated Show resolved Hide resolved
@duboisp
Copy link
Member

duboisp commented Mar 6, 2024

Oh wait, Your PR change are interfering with the merge commit 19e9137. Please remove it and you will need to create a new commit to replace it and it is possible that you will need to reapply your changes.

For example, I don't see the "Overview" heading in my local test copy.

@Garneauma or @GormFrank can help you with that.

@SebastianBurke
Copy link
Contributor Author

I think Ive resolved it!

Copy link
Member

@duboisp duboisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed and tested locally,
See the requested change and please apply the similar change to the French example

</div>
<div>
<h2><code>.text-*</code></h2>
<dd>Can be used to align text or change its case.</dd>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be paragraph <p>, not a definition description <dd> because those must be in a description list

Suggested change
<dd>Can be used to align text or change its case.</dd>
<p>Can be used to align text or change its case.</p>

And apply the same change across both working example

<div>
<h2><code>.text-*</code></h2>
<dd>Can be used to align text or change its case.</dd>
<h2>Alignment examples:</h2>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sub-heading of the "h2" at line 73.

Suggested change
<h2>Alignment examples:</h2>
<h3>Alignment examples:</h3>

And apply the similar fix for the other similar sub-heading

<p class="text-nowrap col-sm-6">
No-wrap text: xxxxxxxxxxxxxxxxxxxxxxx
</p>
<pre class="text-nowrap col-sm-6"><code>&lt;p <strong>class=&quot;text-danger&quot;</strong>&gt;...&lt;/p&gt;</code></pre>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code example don't match the example.

</div>
<div class="row">
<p class="text-nowrap col-sm-6">
No-wrap text: xxxxxxxxxxxxxxxxxxxxxxx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add 23-25 more "x" because we don't see the effet on large page view port

<h2><code>.no-wrap</code></h2>
<dd>Prevents the text from wrapping</dd>
<p class="no-wrap">
Example no wrap: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a few word or a few "x" to ensure the no wrap is demoed in large view

Comment on lines +142 to +145
<pre><code>&lt;p&gt;Example 1: Default font style&lt;/p&gt;</code></pre>
<pre><code>&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;Example 2: Normal font style&lt;/p&gt;</code></pre>
<pre><code>&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;&lt;strong&gt;Example 3: &lt;em class="fnt-nrml"&gt;Normal font style&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;</code></pre>
<pre><code>&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;&lt;em&gtExample 4: &lt;strong class="fnt-nrml"&gtNormal font style&lt;/strong&gt&lt;/em&gt&lt;/p&gt;</code></pre>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put it in one block like

Suggested change
<pre><code>&lt;p&gt;Example 1: Default font style&lt;/p&gt;</code></pre>
<pre><code>&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;Example 2: Normal font style&lt;/p&gt;</code></pre>
<pre><code>&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;&lt;strong&gt;Example 3: &lt;em class="fnt-nrml"&gt;Normal font style&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;</code></pre>
<pre><code>&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;&lt;em&gtExample 4: &lt;strong class="fnt-nrml"&gtNormal font style&lt;/strong&gt&lt;/em&gt&lt;/p&gt;</code></pre>
<pre><code>&lt;p&gt;Example 1: Default font style&lt;/p&gt;
&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;Example 2: Normal font style&lt;/p&gt;
&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;&lt;strong&gt;Example 3: &lt;em class="fnt-nrml"&gt;Normal font style&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p <strong>class=&quot;fnt-nrml&quot;</strong>&gt;&lt;em&gtExample 4: &lt;strong class="fnt-nrml"&gtNormal font style&lt;/strong&gt&lt;/em&gt&lt;/p&gt;</code></pre>

Comment on lines +134 to +135
</div>
<div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those wrapper <div> don't provide any value added to the content, please remove all the plain div that contains no HTML attribute.

Comment on lines +140 to +141
<p><strong>Example 3: <em class="fnt-nrml">Normal font style</em></strong></p>
<p><em>Example 4: <strong class="fnt-nrml">Normal font style</strong></em></p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use some bracket to indicate where the effect is applied. like:

Suggested change
<p><strong>Example 3: <em class="fnt-nrml">Normal font style</em></strong></p>
<p><em>Example 4: <strong class="fnt-nrml">Normal font style</strong></em></p>
<p><strong>Example 3: <em class="fnt-nrml">[Normal font style in <code>&lt;em></code> element]</em></strong></p>
<p><em>Example 4: <strong class="fnt-nrml">[Normal font style in <code>&lt;strong></code> element]</strong></em></p>

<dd>Increases the font size and line height</dd>
<dt><code>.text-*</code></dt>
<dd>Changes the alignment or case of the text</dd>
<dt><code>.no-wrap</code></dt>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo, see the other comment

Comment on lines +6 to +12
"breadcrumbs":
[
{
"title": "GCWeb home",
"link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html"
}
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can now remove that breadcrumb item because it is there by default.

Suggested change
"breadcrumbs":
[
{
"title": "GCWeb home",
"link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html"
}
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Query: Project item Part of a github project
Projects
Status: Review completed, changes requested
Development

Successfully merging this pull request may close these issues.

2 participants