-
Notifications
You must be signed in to change notification settings - Fork 130
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
base: master
Are you sure you want to change the base?
Content - Text-level Modifiers - Created Example Pages #2211
Conversation
5037ce6
to
b4d7d61
Compare
There was a problem hiding this 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
- https://github.com/wet-boew/GCWeb/blob/master/common/colour/colour-en.html#L164-L211
- https://github.com/wet-boew/GCWeb/blob/master/common/colour/colour-fr.html#L164-L211
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.
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. |
980210e
to
b4d7d61
Compare
b4d7d61
to
26c4958
Compare
I think Ive resolved it! |
26c4958
to
5b9ff59
Compare
5b9ff59
to
7a0542f
Compare
There was a problem hiding this 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> |
There was a problem hiding this comment.
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
<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> |
There was a problem hiding this comment.
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.
<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><p <strong>class="text-danger"</strong>>...</p></code></pre> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
<pre><code><p>Example 1: Default font style</p></code></pre> | ||
<pre><code><p <strong>class="fnt-nrml"</strong>>Example 2: Normal font style</p></code></pre> | ||
<pre><code><p <strong>class="fnt-nrml"</strong>><strong>Example 3: <em class="fnt-nrml">Normal font style</em></strong></p></code></pre> | ||
<pre><code><p <strong>class="fnt-nrml"</strong>><em>Example 4: <strong class="fnt-nrml">Normal font style</strong></em></p></code></pre> |
There was a problem hiding this comment.
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
<pre><code><p>Example 1: Default font style</p></code></pre> | |
<pre><code><p <strong>class="fnt-nrml"</strong>>Example 2: Normal font style</p></code></pre> | |
<pre><code><p <strong>class="fnt-nrml"</strong>><strong>Example 3: <em class="fnt-nrml">Normal font style</em></strong></p></code></pre> | |
<pre><code><p <strong>class="fnt-nrml"</strong>><em>Example 4: <strong class="fnt-nrml">Normal font style</strong></em></p></code></pre> | |
<pre><code><p>Example 1: Default font style</p> | |
<p <strong>class="fnt-nrml"</strong>>Example 2: Normal font style</p> | |
<p <strong>class="fnt-nrml"</strong>><strong>Example 3: <em class="fnt-nrml">Normal font style</em></strong></p> | |
<p <strong>class="fnt-nrml"</strong>><em>Example 4: <strong class="fnt-nrml">Normal font style</strong></em></p></code></pre> |
</div> | ||
<div> |
There was a problem hiding this comment.
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.
<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> |
There was a problem hiding this comment.
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:
<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><em></code> element]</em></strong></p> | |
<p><em>Example 4: <strong class="fnt-nrml">[Normal font style in <code><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> |
There was a problem hiding this comment.
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
"breadcrumbs": | ||
[ | ||
{ | ||
"title": "GCWeb home", | ||
"link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" | ||
} | ||
], |
There was a problem hiding this comment.
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.
"breadcrumbs": | |
[ | |
{ | |
"title": "GCWeb home", | |
"link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" | |
} | |
], |
Related to WET-401