diplodoc-platform / diplodoc-platform/components

Refactor Undefined Class Usage in SubNavigation

Open
#319 1 comment 0 reactions 0 assignees View on GitHub
good first issue refactor ui
Dominant language
TypeScript
Stars
14
Forks
35
Avg merge
10h 6m
Merged PRs (30d)
17

Description

### Problem
The [`SubNavigation`](https://github.com/diplodoc-platform/components/blob/master/src/components/SubNavigation/SubNavigation.scss) component in diplodoc-platform/components uses the `.dc-root_wide-format` class, which isn't defined in the current library. This can cause styling issues.

image

### Solution
Move the styles for `.dc-root_wide-format` from the diplodoc-platform/components package to the [diplodoc-platform/client](https://github.com/diplodoc-platform/client) package.

### Tasks
1. Identify Usage: Find all occurrences of `.dc-root_wide-format` in `SubNavigation`.
2. Move Styling: Transfer these styles to the client package.
3. Update References: Modify any references in `SubNavigation` to use the relocated styles.
4. Testing: Ensure the component works and is styled correctly post-changes.

### Goal
Ensure `SubNavigation` maintains functionality and appearance with appropriately defined styles.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.