-
Notifications
You must be signed in to change notification settings - Fork 17
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
Should apply level hierarchy #64
Comments
This Feature is ready to be implemented. |
This feature have been implemented and is ready for Funcional Test. |
@juantenesaca it's not the case of a hierarchy for each component. The hierarchy will de determined by the presence of the BIG[MEDIUM|NORMAL title (Texto Component configured to be titles) as parent of a content. First, lets make some definition Target Components are the authoring tool components that are builded (html) using headers tag <div><-- Some hypothetical component
This component is a TARGET COMPONENT
Because there is one or more header tag in it -->
<h4>
<button>...</button>
</h4>
<div>
<h5>...</h5>
<p>...</p>
</div>
</div> <div>
<-- Another hypothetical component
This component is not a TARGET COMPONENT
Because there is no header tag in it -->
<button>...</button>
<div>
<p>...</p>
</div>
</div> Now, rewriting the scenarios I've stated in previous commentary
<div>
<h3><-- changed h4 by h3-->
<button>...</button>
</h4>
<div>
<h5>...</h5> <-- changed h5 by h4-->
<p>...</p>
</div>
</div>
<div><-- Some hypothetical component
This component is a TARGET COMPONENT
Because there is one or more header tag in it -->
<h4>
<button>...</button>
</h4>
<div>
<h5>...</h5>
<p>...</p>
</div>
</div>
<div>
<h5><-- changed h4 by h5-->
<button>...</button>
</h5>
<div>
<h6>...</h6> <-- changed h5 by h6-->
<p>...</p>
</div>
</div>
<div>
<h2><-- changed h4 by h2-->
<button>...</button>
</h2>
<div>
<h3>...</h3> <-- changed h5 by h3-->
<p>...</p>
</div>
</div>
Example of adding a hypothetical target component in work area, with no title as parentExample of adding a hypothetical target component in work area with a BIG TITLE as parentExample of adding a hypothetical target component in work area with a MEDIUM TITLE as parentExample of adding a hypothetical target component in work area with a NORMAL TITLE as parentExample of MOVING a Title that will cause the need to adust header of an existent Target ContentExample of DELETING a Title that will cause the need to adust header of an existent Target Content |
I see. For it then, we need to first implement code to detect children and parents, in order to configure on which hierarchy they have to start. @gavixo we need to implement more code for this requirement. What do you think? |
@juantenesaca @gavixo have a look in branch feature/64 I've done a header validation for my text Editor (a11yEditor) component that find the headers with wrong level and adjust existent headers new headers are added or when a existent header is deleted or had level changed. I commited a simple version of that algorithm with a Demo component for test purpose What you think I create a new feature about the headers validation, because this is bigger scope then this bug ? And for this bug issue you just need to correct the header tags for: Note: I'm suggesting start in |
This Feature Request was accepted, but are not going to be implemented in next release. This will be work on #60 release |
This Feature is ready to be implemented. |
@juantenesaca, as I commented before, it's necessary a header validation and that the headers used in components be settled dynamically in Course's Page take in account the Title structured created by teacher. 💡 My suggestion for now is that you can avoid a lot of work by removing unnecessarily headers from components
Let's talk better when you start this. |
Functional Test passed! |
Expected Behavior
Programmatic heading levels should match their visual appearance (like size and boldness).
Current Behavior
Text contents of type Title, create by teacher, are not rendered using the correct heading tags. Big, Medium and Normal title are all coded as
h2
Steps to Reproduce
How to fix
Structure multiple headings on a page hierarchically. (best practice)
For example, try to follow nested content under an h2 heading with h3 before you use h4.
Exception: For fixed content that repeats across pages (like a footer or a sidebar), the heading level should not change.
Follow #62 and #63 specification
Related issues
#65
The text was updated successfully, but these errors were encountered: