Skip to content

Commit d0ecda9

Browse files
committed
content [nfc]: Stop redundantly setting spans' background in code blocks
The code block background is currently white anyway, so this has been redundant. But we're about to set it to something off-white, to align with web, and this white background color on the text spans would interfere with that.
1 parent 33b97ef commit d0ecda9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/widgets/content.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,7 @@ final _kInlineCodeStyle = kMonospaceTextStyle
858858
.merge(const TextStyle(backgroundColor: Color(0xffeeeeee)));
859859

860860
final _kCodeBlockStyle = kMonospaceTextStyle
861-
.merge(const TextStyle(
862-
backgroundColor: Color.fromRGBO(255, 255, 255, 1),
863-
fontSize: 0.825 * kBaseFontSize))
861+
.merge(const TextStyle(fontSize: 0.825 * kBaseFontSize))
864862
.merge(
865863
// TODO(a11y) pass a BuildContext, to handle platform request for bold text.
866864
// To get one, the result of this whole computation (to the TextStyle

0 commit comments

Comments
 (0)