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

[Bug]: h3 to h6 look like text, headings generally inconsistent across apps #43393

Closed
4 of 8 tasks
ChristophWurst opened this issue Feb 6, 2024 · 7 comments · Fixed by #43640
Closed
4 of 8 tasks

[Bug]: h3 to h6 look like text, headings generally inconsistent across apps #43393

ChristophWurst opened this issue Feb 6, 2024 · 7 comments · Fixed by #43640
Assignees
Labels
3. to review Waiting for reviews 29-feedback accessibility bug design Design, UI, UX, etc.
Milestone

Comments

@ChristophWurst
Copy link
Member

ChristophWurst commented Feb 6, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

Bildschirmfoto vom 2024-02-06 14-25-27

h2 isn't great, h3 is bad.

Another example:
image

Encryption is a h3. It doesn't look like one at all. This makes it super hard to recognize the structure of a text page in Nextcloud, like the settings.

Another one:

image

Update channel looks like ordinary text. It gives no structure except for the increased spacing.

h1 to h6 all share the same base styling:

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section, main {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
cursor: default;
scrollbar-color: var(--color-border-dark) transparent;
scrollbar-width: thin;
}
. The font weight of h2 is set to bold. The rest stays inherit, which is too light IMO.
/* BASE STYLING ------------------------------------------------------------ */
// no h1 allowed since h1 = logo
h2 {
font-weight: bold;
font-size: 20px;
margin-bottom: 12px;
line-height: 30px;
color: var(--color-text-light);
}
h3 {
font-size: 16px;
margin: 12px 0;
color: var(--color-text-light);
}
h4 {
font-size: 14px;
}

Steps to reproduce

  1. Open settings, apps, etc

Expected behavior

Headings that help me recognize the structure of text, paragraphs and sections.

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@ChristophWurst ChristophWurst added bug design Design, UI, UX, etc. 0. Needs triage Pending check for reproducibility or if it fits our roadmap accessibility labels Feb 6, 2024
@ChristophWurst
Copy link
Member Author

image

Text doesn't have the issue because there is a custom style for h* inside the prosemirror editor.

image

Talk has custom styles through nextcloud/vue and the richttexteditable

If we make good defaults, prosemirror in text, ckeditor in Mail, richtexteditable in Talk, etc could all look the same.

@ChristophWurst
Copy link
Member Author

@jancborchardt is this something worth standardizing?

@ChristophWurst ChristophWurst changed the title [Bug]: h3 to h6 look like text [Bug]: h3 to h6 look like text, headings generally inconsistent across apps Feb 7, 2024
@jancborchardt
Copy link
Member

Yes, sounds good. Could we standardize them all based on the styles from Text? This this is something I went through and balanced back then.

@ChristophWurst
Copy link
Member Author

Sure! That can be copied into the server styles and nextcloud/vue

@ChristophWurst
Copy link
Member Author

Discussed with other engineering leads. The change is simple but the effects are significant and we are close to the feature freeze of 29. We will therefore move this to after the stable29 branch off.

@susnux
Copy link
Contributor

susnux commented Feb 20, 2024

The change is simple but the effects are significant and we are close to the feature freeze of 29.

Sounds reasonable, so merge after branch off?

@ChristophWurst
Copy link
Member Author

Yes :)

@jancborchardt jancborchardt moved this from 🏗️ At engineering to 🧭 Planning evaluation / ideas in 🖍 Design team Feb 28, 2024
@github-project-automation github-project-automation bot moved this from 🧭 Planning evaluation / ideas to 🎉 Done in 🖍 Design team Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews 29-feedback accessibility bug design Design, UI, UX, etc.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants