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

Transform route titles into real h1's, for #1651 #2162

Closed
wants to merge 373 commits into from

Conversation

marcus-herrmann
Copy link
Contributor

@marcus-herrmann marcus-herrmann commented Oct 4, 2019

Description

Transformed spans the held the page title to actual h1 elements. In the case of the file list a h1 is existing for accessibility reasons, but can only be perceived via a screen reader (is "visually-hidden").

Related Issue

Motivation and Context

Screen reader users navigate by large extent by a documents or web apps headline structure. At least one level 1 headline should exist to make the pages (routes) purpose, content or function clear.

How Has This Been Tested?

work in progress

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Tests

src/Phoenix.vue Outdated
margin: 0;
}

.visually-hidden {
Copy link
Contributor

@LukasHirt LukasHirt Oct 4, 2019

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. Will create a utility class for this, using this mixin in the DS, then using mentioned class in phoenix if that's okay.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The corresponding DS PR: owncloud/owncloud-design-system#498
It will establish .oc-visually-hidden which I'll use here.

@CLAassistant
Copy link

CLAassistant commented Oct 4, 2019

CLA assistant check
All committers have signed the CLA.

src/Phoenix.vue Outdated
@@ -57,4 +57,18 @@ export default {
height: 100vh;
overflow: hidden;
}

.oc-page-title {
Copy link
Member

Choose a reason for hiding this comment

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

this shall also go into the design system from my understanding

@@ -3,7 +3,7 @@
<oc-loader v-if="loading" />
<div v-if="!loading" class="uk-width-3-4@m uk-container uk-padding">
<div class="uk-flex uk-flex-between uk-flex-middle">
<span class="uk-text-lead" v-translate>Account</span>
<h1 class="uk-text-lead oc-page-title" v-translate>Account</h1>
Copy link
Member

Choose a reason for hiding this comment

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

can we get rid of uk-text-lead here as well? The class oc-page-title shall hold all necessary styles for a page title.

@DeepDiver1975
Copy link
Member

And please squash your commits. THX

@LukasHirt
Copy link
Contributor

LukasHirt commented Oct 7, 2019

And please squash your commits. THX

Could we get for this the setting in Github that when PR is merged commits are automatically squashed? @DeepDiver1975 @PVince81

@marcus-herrmann
Copy link
Contributor Author

Manually squashed, and moved .oc-page-title to the DS: owncloud/owncloud-design-system#499

@DeepDiver1975
Copy link
Member

Could we get for this the setting in Github that when PR is merged commits are automatically squashed?

Manual squashing also forces devs to properly edit their commit messages. The squash button pushes this responsibility to the merger. Which I highly dislike - devs need to submit proper PRs 🤷‍♂️

@marcus-herrmann marcus-herrmann force-pushed the feature/headline-level-1-for-every-route branch from 36d4978 to daeef95 Compare October 7, 2019 09:27
@PVince81
Copy link
Contributor

@DeepDiver1975 @LukasHirt can you validate this PR ? the requested changes have been addressed

Copy link
Contributor

@LukasHirt LukasHirt left a comment

Choose a reason for hiding this comment

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

Update pls ODS so the visually hidden and page-title classes are in place.

@marcus-herrmann
Copy link
Contributor Author

@LukasHirt to whom this is addressed to?

jasson99 and others added 10 commits October 25, 2019 11:00
…ersOrGroups

Acceptance test to assert autocompletion isnt present for non-existin…
Acceptance test to create hidden file
Moved few PRs to different sections

Removed tests from changelog

Removed last tests items

Changed wording of ie 11 tests
Adjusted changelog and version to 0.2.5
Add skip to component, id attribute for <main>
Vincent Petry and others added 10 commits December 10, 2019 15:10
…nal-storage

Hide quota on external storage
Refactor filesPage page-object for assertion management
Bumps [owncloud-design-system](https://github.com/owncloud/owncloud-design-system) from 1.0.0-1007 to 1.0.0-1030.
- [Release notes](https://github.com/owncloud/owncloud-design-system/releases)
- [Commits](https://github.com/owncloud/owncloud-design-system/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Add acceptance test to filter files and folders using keyword in the files page
…ud-design-system-1.0.0-1030

Bump owncloud-design-system from 1.0.0-1007 to 1.0.0-1030
…les-list

Bugfix/no checkbox label in files list
@PVince81
Copy link
Contributor

@marcus-herrmann please rebase and I think all will already be up to date as the ODS was updated on master already a while ago. Then I think we can merge this. Thanks!

Use generic visually hidden, page title helper class, established in DS for #1651
…:owncloud/phoenix into feature/headline-level-1-for-every-route
Use generic visually hidden, page title helper class, established in DS for #1651
…:owncloud/phoenix into feature/headline-level-1-for-every-route
@marcus-herrmann
Copy link
Contributor Author

Rebase went wrong, sorry. To not make it worse by trying to fix it, opening new PR: #2681

@ownclouders
Copy link
Contributor

💥 Acceptance tests Account failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7144/

20191212-172717-481.png
20191212-172756-010.png
20191212-172853-077.png
20191212-172929-453.png
20191212-173006-919.png
20191212-173043-508.png
20191212-173117-915.png
20191212-173151-562.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests Account failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7143/

20191212-172757-608.png
20191212-172859-525.png
20191212-172943-547.png
20191212-173025-502.png
20191212-173108-633.png
20191212-173148-074.png
20191212-173225-446.png
20191212-173323-002.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests SharingPermissionsUsers failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7143/

20191212-172418-810.png
20191212-172459-023.png
20191212-172533-982.png
20191212-172549-498.png
20191212-172606-183.png
20191212-172623-659.png
20191212-172700-635.png
20191212-172713-128.png
20191212-173048-119.png
20191212-173107-129.png
20191212-173125-138.png
20191212-173140-019.png
20191212-173210-017.png
20191212-173219-462.png
20191212-173430-158.png
20191212-173444-522.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests iPhone failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7144/

20191212-172826-202.png
20191212-172923-644.png
20191212-173002-011.png
20191212-173039-777.png
20191212-173118-006.png
20191212-173216-214.png
20191212-173312-679.png
20191212-173348-849.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests SharingPermissionsUsers failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7144/

20191212-172520-792.png
20191212-172542-102.png
20191212-172556-449.png
20191212-172611-537.png
20191212-172628-763.png
20191212-172645-535.png
20191212-172658-558.png
20191212-172713-273.png
20191212-173101-687.png
20191212-173140-436.png
20191212-173159-177.png
20191212-173217-905.png
20191212-173234-413.png
20191212-173309-816.png
20191212-173537-958.png
20191212-173614-316.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests iPhone failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7143/

20191212-172815-245.png
20191212-172924-032.png
20191212-173016-342.png
20191212-173121-134.png
20191212-173227-869.png
20191212-173355-926.png
20191212-173447-901.png
20191212-173554-778.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests Trashbin failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7143/

20191212-172738-637.png
20191212-172822-663.png
20191212-172903-851.png
20191212-172945-977.png
20191212-173705-388.png
20191212-173705-634.png
20191212-173827-214.png
20191212-173827-511.png
20191212-173927-151.png
20191212-173927-589.png
20191212-174010-891.png
20191212-174011-220.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests SharingAutocompletion failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7144/

20191212-172654-842.png
20191212-172739-367.png
20191212-172845-310.png
20191212-173009-902.png
20191212-173334-169.png
20191212-173453-183.png
20191212-173533-274.png
20191212-173631-620.png
20191212-173921-312.png
20191212-174154-192.png
20191212-174325-542.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests Resharing failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7143/

20191212-173408-288.png
20191212-173519-529.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests SharingAutocompletion failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7143/

20191212-172545-287.png
20191212-172634-138.png
20191212-172738-535.png
20191212-172826-061.png
20191212-173214-734.png
20191212-173305-954.png
20191212-173411-490.png
20191212-173501-797.png
20191212-173857-857.png
20191212-174109-512.png
20191212-174418-201.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests Trashbin failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7144/

20191212-173027-645.png
20191212-173135-813.png
20191212-173244-183.png
20191212-173329-711.png
20191212-174319-022.png
20191212-174319-349.png
20191212-174426-220.png
20191212-174426-615.png
20191212-174554-720.png
20191212-174555-120.png
20191212-174723-033.png
20191212-174723-424.png

@ownclouders
Copy link
Contributor

💥 Acceptance tests Resharing failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/7144/

20191212-173848-681.png
20191212-173948-865.png

@pascalwengerter pascalwengerter deleted the feature/headline-level-1-for-every-route branch May 10, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document has no headline level one