Skip to content

Commit 445831a

Browse files
authored
Merge pull request #12 from javaevolved/copilot/fix-hero-card-code-color-syntax
Fix syntax highlighting on hero card
2 parents 893f300 + 3bfde07 commit 445831a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ <h1>Java has evolved.<br><span class="gradient">Your code can too.</span></h1>
176176
<a href="/records-for-data-classes.html" class="hero-compare">
177177
<div class="hero-compare-side old">
178178
<div class="compare-label old">✕ Old</div>
179-
<pre style="margin:0;background:none;border:none;font:inherit;line-height:inherit;padding:0;overflow:visible"><code style="background:none;border:none;padding:0;font:inherit">public class Point {
179+
<pre class="code-text" style="margin:0;background:none;border:none;font:inherit;line-height:inherit;padding:0;overflow:visible"><code style="background:none;border:none;padding:0;font:inherit">public class Point {
180180
private final int x, y;
181181
public Point(int x, int y) { ... }
182182
public int getX() { return x; }
@@ -186,7 +186,7 @@ <h1>Java has evolved.<br><span class="gradient">Your code can too.</span></h1>
186186
</div>
187187
<div class="hero-compare-side modern">
188188
<div class="compare-label modern">✓ Modern</div>
189-
<pre style="margin:0;background:none;border:none;font:inherit;line-height:inherit;padding:0;overflow:visible"><code style="background:none;border:none;padding:0;font:inherit">public record Point(int x, int y) {}</code></pre>
189+
<pre class="code-text" style="margin:0;background:none;border:none;font:inherit;line-height:inherit;padding:0;overflow:visible"><code style="background:none;border:none;padding:0;font:inherit">public record Point(int x, int y) {}</code></pre>
190190
</div>
191191
</a>
192192
</section>

0 commit comments

Comments
 (0)