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

feat: use appropriate heading levels for blog post cards #103

Merged
merged 3 commits into from
Sep 25, 2023

Conversation

Kyzyl-ool
Copy link
Contributor

@Kyzyl-ool Kyzyl-ool commented Aug 18, 2023

This PR only changes heading tags used for better semantics. In the page one should not bypass the heading levels (e.g. from h1 to h4, as done in the current version)

@Kyzyl-ool Kyzyl-ool requested a review from NikitaCG as a code owner August 18, 2023 10:31
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@Kyzyl-ool Kyzyl-ool added the enhancement New feature or request label Aug 18, 2023
@@ -9,25 +9,30 @@ import {SuggestPostInfo} from '../PostInfo/SuggestPostInfo';

import './PostCard.scss';

const b = block('post-card');
type PostCardSize = 's' | 'm';
type TitleHeadingLevel = 'h2' | 'h3';
Copy link
Collaborator

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.

done

@Kyzyl-ool Kyzyl-ool merged commit 22dee91 into main Sep 25, 2023
@Kyzyl-ool Kyzyl-ool deleted the feat/a11y-post-card branch September 25, 2023 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants