Skip to content

Commit

Permalink
Fix cascade issue with adding className to EuiPageContent (elastic#2237)
Browse files Browse the repository at this point in the history
* Fix cascade issue with adding className to EuiPageContent

* Add changelog entry
  • Loading branch information
Zacqary authored and thompsongl committed Sep 10, 2019
1 parent 51e13e5 commit 93abb21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Removed Firefox's focus ring to match other browsers ([#2193](https://github.com/elastic/eui/pull/2193))
- Added missing `onChange` TS defs for EuiRange ([#2211](https://github.com/elastic/eui/pull/2211))
- Fixed `EuiBadge` text cursor to default pointer ([#2234](https://github.com/elastic/eui/pull/2234))
- Fixed `EuiPageContent` className prop to allow the passed-in className to take cascade precedence over classes generated by the component ([#2237](https://github.com/elastic/eui/pull/2237))

## [`13.3.0`](https://github.com/elastic/eui/tree/v13.3.0)

Expand Down
4 changes: 2 additions & 2 deletions src/components/page/page_content/page_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const EuiPageContent = ({
}) => {
const classes = classNames(
'euiPageContent',
className,
verticalPositionToClassNameMap[verticalPosition],
horizontalPositionToClassNameMap[horizontalPosition]
horizontalPositionToClassNameMap[horizontalPosition],
className
);

return (
Expand Down

0 comments on commit 93abb21

Please sign in to comment.