Skip to content

Commit

Permalink
[Table Visualization] Remove custom styling for text-align:center in …
Browse files Browse the repository at this point in the history
…favor of OUI utility class. (#4164)

* remove custom styling in favor of oui utility class

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>

* Update CHANGELOG.md

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>

---------

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
  • Loading branch information
curq authored Jun 1, 2023
1 parent f017eaa commit efbcb69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- [Console] Remove unused ul element and its custom styling ([#3993](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3993))
- Fix EUI/OUI type errors ([#3798](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3798))
- Remove unused Sass in `tile_map` plugin ([#4110](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4110))
- [Table Visualization] Remove custom styling for text-align:center in favor of OUI utility class. ([#4164](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4164))

### 🔩 Tests

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
flex: 0 0 auto;
}

// Style for table component title
.visTable__component__title {
text-align: center;
}

// Modifier for visTables__group when displayed in columns
.visTable__groupInColumns {
flex-direction: row;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const TableVisComponent = ({
return (
<>
{title && (
<EuiTitle size="xs" className="visTable__component__title">
<EuiTitle size="xs" className="eui-textCenter">
<h3>{title}</h3>
</EuiTitle>
)}
Expand Down

0 comments on commit efbcb69

Please sign in to comment.