Skip to content

Commit

Permalink
Show disruption alerts on white background
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Dec 16, 2024
1 parent 5e8d914 commit 2581fae
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/component/MessageBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class MessageBar extends Component {
const iconName = `icon-icon_${icon}`;
const isDisruption = msg.type === 'disruption';
const backgroundColor = msg.backgroundColor || '#fff';
const textColor = isDisruption ? '#fff' : msg.textColor || '#000';
const textColor = msg.textColor || '#000';
const dataURI = msg.dataURI || null;
const ariaContent = (content, id) => {
return (
Expand Down
46 changes: 46 additions & 0 deletions sass/themes/herrenberg/stadtnavi.scss
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,49 @@
font-weight: normal;
line-height: normal;
}

// --- Show disruptions on white background ---
.message-bar {
.banner-container {
&.banner-disruption {
background: white;

.swipe-tab-ball {
&.selected {
border: solid 2px black;
background-color: black;
}
}
.icon {
color: white;
fill: $disruption-color;
}
#close-message-bar {
.icon {
fill: $disruption-color !important;
}
}
.message-bar-content,
a,
h2 {
color: black;
}
.message-bar-container {
.react-swipe-container, .single-alert {
.message-content {
.message-bar-link {
color: black;
}
}
}
}
}
}
.message-bar-container {
&.message-bar-disruption {
a {
color: white;
}
}
}
}

0 comments on commit 2581fae

Please sign in to comment.