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

Use <details> tag for cuts #476

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

Pavel-Tyan
Copy link
Contributor

@Pavel-Tyan Pavel-Tyan commented Aug 2, 2024

Task: https://github.com/orgs/diplodoc-platform/projects/2/views/1?pane=issue&itemId=55495840

Replace div tags to details and summary tags for cuts.

Before:

before.1.mov

After:

after.1.mov

Replace div tags to <details> and <summary> tags.

Delete CSS selector for closed cuts state because there
is no need to write 2 separate selectors for cuts state
(open/closed) after using <details> tag.

Add "list-style" and "::-webkit-details-marker" to
delete default toggle marker.

Add color for focus outline because <details> tag
allows to use keyboard navigation for cuts.
Change tests due to replacing <div> tags
to <details> and <summary> tags in cuts.
@martyanovandrey martyanovandrey merged commit dca71bb into diplodoc-platform:master Aug 5, 2024
1 check passed
makamekm pushed a commit that referenced this pull request Aug 12, 2024
* refactor: use <details> tag for cuts

Replace div tags to <details> and <summary> tags.

Delete CSS selector for closed cuts state because there
is no need to write 2 separate selectors for cuts state
(open/closed) after using <details> tag.

Add "list-style" and "::-webkit-details-marker" to
delete default toggle marker.

Add color for focus outline because <details> tag
allows to use keyboard navigation for cuts.

* test: change tests for cuts

Change tests due to replacing <div> tags
to <details> and <summary> tags in cuts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants