Skip to content

Instantly share code, notes, and snippets.

@lukethacoder
Created June 1, 2022 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukethacoder/94fbf93ae6278d97556f32c70985543f to your computer and use it in GitHub Desktop.
Save lukethacoder/94fbf93ae6278d97556f32c70985543f to your computer and use it in GitHub Desktop.
Salesforce Community Error Debug Community Head Custom CSS
/* Allows devs to see errors that probably should be logged to the console but aren't */
.auraErrorBox {
width: 100%;
}
.auraErrorBox > span {
display: flex;
align-items: center;
font-weight: 700;
margin-bottom: 8px;
}
.auraForcedErrorBox {
display: flex !important;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #ca1736;
padding: 16px;
z-index: 100000000;
color: #ffffff;
font-size: 1rem;
}
#auraErrorMessage {
white-space: break-spaces;
width: 100%;
}
#dismissError {
display: flex;
padding: 0px;
background-color: #ffffff;
width: 36px;
height: 36px;
border: 3px solid #222222;
color: #222222 !important;
justify-content: center;
align-items: center;
font-weight: 700;
font-size: 2rem;
margin-right: 8px;
text-decoration: none;
transition: all 0.3s ease;
}
#dismissError:hover {
background-color: #333333;
color: #ffffff !important;
text-decoration: none;
}
.auraErrorFooter {
margin-top: 8px;
display: flex;
justify-content: flex-end;
}
.auraErrorFooter a {
padding: 4px 12px;
background-color: #ffffff;
border: 3px solid #222222;
color: #222222 !important;
text-transform: uppercase;
font-weight: 700;
font-size: 14px;
text-decoration: none;
transition: all 0.3s ease;
}
.auraErrorFooter a:hover {
background-color: #333333;
color: #ffffff !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment