<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chukwuka Rosemary</title>
    <description>The latest articles on DEV Community by Chukwuka Rosemary (@chukwukarosemary23).</description>
    <link>https://dev.to/chukwukarosemary23</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4034407%2F0c92b9e0-5142-4df6-88d1-97c1742edb8f.jpg</url>
      <title>DEV Community: Chukwuka Rosemary</title>
      <link>https://dev.to/chukwukarosemary23</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chukwukarosemary23"/>
    <language>en</language>
    <item>
      <title>What a One-Line CSS Fix Taught Me About Code Review (My First Firefox Patch Feedback Loop)</title>
      <dc:creator>Chukwuka Rosemary</dc:creator>
      <pubDate>Fri, 17 Jul 2026 21:21:55 +0000</pubDate>
      <link>https://dev.to/chukwukarosemary23/what-a-one-line-css-fix-taught-me-about-code-review-my-first-firefox-patch-feedback-loop-848</link>
      <guid>https://dev.to/chukwukarosemary23/what-a-one-line-css-fix-taught-me-about-code-review-my-first-firefox-patch-feedback-loop-848</guid>
      <description>&lt;h1&gt;
  
  
  What a One-Line CSS Fix Taught Me About Code Review (My First Firefox Patch Feedback Loop)
&lt;/h1&gt;

&lt;p&gt;When I started contributing to Firefox through Outreachy, I expected the hard part to be &lt;em&gt;writing&lt;/em&gt; code. What actually taught me the most was a two-line CSS fix that a reviewer sent back — not because it was wrong, but because it wasn't quite right yet.&lt;/p&gt;

&lt;p&gt;Here's what happened with &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=2026574" rel="noopener noreferrer"&gt;Bug 2026574&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bug
&lt;/h2&gt;

&lt;p&gt;In Firefox's Split View &lt;code&gt;about:opentabs&lt;/code&gt; page, long strings in the search field were overflowing outside their container instead of wrapping. Visually, it broke the layout — text just spilled past its boundary instead of staying contained.&lt;/p&gt;

&lt;p&gt;My job: make the text wrap properly, without breaking anything else on the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  My First Attempt
&lt;/h2&gt;

&lt;p&gt;I went into &lt;code&gt;moz-card.css&lt;/code&gt; and targeted the heading element directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.moz-card-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;break-word&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This worked, technically. The text wrapped. Locally, it looked fixed.&lt;/p&gt;

&lt;p&gt;I submitted the patch for review, feeling fairly confident — it was a small, contained change.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Feedback
&lt;/h2&gt;

&lt;p&gt;My reviewer, Tim Giles, came back with a better approach. Instead of targeting the heading specifically with two properties, he suggested applying a single, more precise rule to the parent &lt;code&gt;.moz-card&lt;/code&gt; element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.moz-card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;anywhere&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;overflow-wrap: anywhere&lt;/code&gt; is more aggressive than &lt;code&gt;break-word&lt;/code&gt; — it allows breaks at any point when needed to prevent overflow, not just at existing break opportunities. And by moving it to &lt;code&gt;.moz-card&lt;/code&gt; instead of just the heading, the fix covered the component more robustly instead of patching one specific element.&lt;/p&gt;

&lt;p&gt;It was a smaller diff. It solved the actual problem instead of the symptom I'd focused on. And it followed patterns already used elsewhere in the codebase.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Actually Learned
&lt;/h2&gt;

&lt;p&gt;My first instinct, seeing feedback on a patch I thought was "done," was a small jolt of &lt;em&gt;did I get this wrong?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;But that's not what was happening. Getting feedback on a first pass isn't failure — it's the normal shape of how good code gets written in a real codebase, especially one as large and well-established as Firefox's. A reviewer who's worked in that CSS longer than I have could see a cleaner path I couldn't see yet, and the whole point of review is that someone catches that &lt;em&gt;before&lt;/em&gt; it ships to hundreds of millions of users.&lt;/p&gt;

&lt;p&gt;I made the change, resubmitted, and Kelly Cochrane landed it into Firefox Nightly on April 7, 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  If You're New to Open Source
&lt;/h2&gt;

&lt;p&gt;If you're intimidated by the idea of your first patch getting review comments back — don't be. It's not a sign you don't belong in the codebase. It's what the codebase is &lt;em&gt;for&lt;/em&gt;: reviewers exist to make your fix better than your first version, and every experienced contributor has had a "reviewer suggested a cleaner approach" moment. Mine just happened to be two lines of CSS that taught me more about writing maintainable code than a much bigger patch might have.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Rosemary, a self-taught full-stack developer from Nigeria, contributing to Mozilla Firefox through Outreachy. You can find my other work on &lt;a href="https://github.com/ChukwukaRosemary23" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>opensource</category>
      <category>css</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
