Skip to content

Commit

Permalink
Fix rgb syntax on error page to space-separated
Browse files Browse the repository at this point in the history
#65374 (comment)

Co-authored-by: Wojciech Maj <kontakt@wojtekmaj.pl>
(cherry picked from commit ac0982c)
  • Loading branch information
ryohidaka committed Aug 30, 2024
1 parent 7582a13 commit 7793655
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next/src/pages/_error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,23 @@ export default class Error<P = {}> extends React.Component<P & ErrorProps> {
/* CSS minified from
body { margin: 0; color: #000; background: #fff; }
.next-error-h1 {
border-right: 1px solid rgb(0, 0, 0, .3);
border-right: 1px solid rgb(0 0 0 / .3);
}
${
withDarkMode
? `@media (prefers-color-scheme: dark) {
body { color: #fff; background: #000; }
.next-error-h1 {
border-right: 1px solid rgb(255, 255, 255, .3);
border-right: 1px solid rgb(255 255 255 / .3);
}
}`
: ''
}
*/
__html: `body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgb(0,0,0,.3)}${
__html: `body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgb(0 0 0 / .3)}${
withDarkMode
? '@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgb(255,255,255,.3)}}'
? '@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgb(255 255 255 / .3)}}'
: ''
}`,
}}
Expand Down

0 comments on commit 7793655

Please sign in to comment.