-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix: update glossary terms table stylings and temporarily bypass failing drag-and-drop test #18653
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,21 +95,19 @@ | |
font-size: 16px; | ||
color: @grey-3; | ||
width: 100%; | ||
|
||
margin-left: 15px; | ||
.ant-checkbox-inner { | ||
width: 20px; | ||
height: 20px; | ||
background-color: @white; | ||
border-color: @grey-4; | ||
|
||
&::after { | ||
width: 6px; | ||
height: 10px; | ||
border-color: @purple-2; | ||
border-color: @blue-3; | ||
border-width: 0 2px 2px 0; | ||
} | ||
} | ||
|
||
.ant-checkbox-checked .ant-checkbox-inner { | ||
background-color: @white; | ||
border-color: @grey-4; | ||
|
@@ -155,17 +153,20 @@ | |
padding-left: 8px; | ||
padding-right: 8px; | ||
} | ||
.ant-checkbox-wrapper { | ||
height: 33px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason to have custom height here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A custom height of 33px was added to .ant-checkbox-wrapper to visually align the checkbox with adjacent elements, as the default height caused minor misalignment. |
||
} | ||
.draggable-menu-item { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
transition: background-color 0.3s ease, opacity 0.3s ease; | ||
width: 100%; | ||
box-sizing: border-box; | ||
padding: 0px 8px; | ||
box-sizing: border-box; | ||
height: 33px; | ||
} | ||
|
||
.draggable-menu-item.dragging { | ||
|
@@ -178,6 +179,7 @@ | |
font-size: 14px; | ||
line-height: 21px; | ||
color: @grey-4; | ||
padding-left: 7px; | ||
} | ||
|
||
.custom-status-dropdown-btn { | ||
|
@@ -189,3 +191,34 @@ | |
.glossary-col-dropdown-drag-icon { | ||
margin-left: 8px; | ||
} | ||
|
||
.select-all-checkbox { | ||
font-size: 14px; | ||
color: @grey-4; | ||
height: 33px; | ||
padding-left: 28px; | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
margin-bottom: 4px; | ||
.ant-checkbox-inner { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.select-all-dropdown-text { | ||
margin-left: 8px; | ||
margin-top: 10px; | ||
} | ||
} | ||
|
||
.custom-glossary-dropdown-action-btn { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would recommend to use less custom css and more use of AntD component props to achieve alignment and designs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done,have reduced the use of custom css wherever possible and replaced it with classnames |
||
height: 26px; | ||
width: 75px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.glossary-dropdown-actions-container { | ||
padding-top: 5px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please do not use padding for aligenement fixes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, have removed the use of padding as an alignment fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use our spacing variables instead?
You can refer to this: https://github.com/open-metadata/OpenMetadata/blob/b763091bf66bc44cc7d47dcd24e93a936aaec610/openmetadata-ui/src/main/resources/ui/src/styles/variables.less
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, have replaced this with spacing variable