Skip to content

Commit

Permalink
Fix BookingPanel title class overriding
Browse files Browse the repository at this point in the history
Fix the title class overriding so that the css load order does not
affext the styles. Also removes a redundant media query definition.
  • Loading branch information
lyyder committed Dec 31, 2018
1 parent 298018f commit b20c6ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/components/BookingPanel/BookingPanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@
}

.bookingTitle {
@media (--viewportMedium) {
/* Font */
color: var(--matterColor);
/* Font */
color: var(--matterColor);

margin-top: 0;
margin-bottom: 9px;
}
margin-top: 0;
margin-bottom: 9px;
}

.bookingHelp {
Expand Down
2 changes: 1 addition & 1 deletion src/components/BookingPanel/BookingPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const BookingPanel = props => {
: 'BookingPanel.perUnit';

const classes = classNames(rootClassName || css.root, className);
const titleClasses = classNames(css.bookingTitle, titleClassName);
const titleClasses = classNames(titleClassName || css.bookingTitle);

return (
<div className={classes}>
Expand Down
4 changes: 4 additions & 0 deletions src/components/TransactionPanel/TransactionPanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -421,5 +421,9 @@
}

.bookingTitle {
/* Font */
color: var(--matterColor);

margin-top: 0;
margin-bottom: 1px;
}

0 comments on commit b20c6ca

Please sign in to comment.