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: WIKI-19593: implementation of new table design #283

Merged
merged 4 commits into from
Aug 23, 2023

Conversation

rusandorx
Copy link
Contributor

feat: WIKI-19593: implementation of new table design

@smsochneg smsochneg assigned smsochneg and unassigned smsochneg Aug 21, 2023
@smsochneg smsochneg self-requested a review August 21, 2023 12:45
@@ -146,7 +146,7 @@
}

table {
color: #333333;
color: #00000080;
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to change that. Because in Figma there is a placeholder text.

box-sizing: border-box;
border-radius: 8px;
border-collapse: collapse;
border-collapse: separate;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should leave border-collapse: collapse;. Because if we have border-collapse: separate; than the border will be 2px wide.

border-spacing: 0;
background: $baseColor;

thead, tr:nth-child(2n) {
background-color: $tableRowBackgroundColor;
}

tr:first-child td:first-child {
border-top-left-radius: $tableBorderRadius;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this didn't fit you?

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 issue is there are these weird looking double borders outside of the table:
Screenshot 2023-08-22 at 13 33 33

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, so let's leave as you did

border: 1px solid $borderColor;
text-align: center;
// Idk about font-size, if you can find better font-size please use it.
font-size: 1.1rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's remove that and leave the font as it is. Because now in tables font size will be bigger than anywhere in the content

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid $borderColor;
text-align: center;
Copy link
Contributor

Choose a reason for hiding this comment

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

Also we don't need to change text-align.

@smsochneg
Copy link
Contributor

The whole point was to add borders between cells, change colors a little bit and increase paddings

@rusandorx rusandorx requested a review from smsochneg August 22, 2023 10:49
}

tr td:first-child {
border-top-style: solid;
Copy link
Contributor

Choose a reason for hiding this comment

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

Final touch. Should change this line to border-left: 1px solid $borderColor. So we come from this:
image

to this:
image

@rusandorx rusandorx requested a review from smsochneg August 22, 2023 22:33
@smsochneg smsochneg merged commit c208540 into diplodoc-platform:master Aug 23, 2023
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