Shopify Dawn Theme: Fixing Square Input Borders on Click (Newsletter & Search)

Hey everyone! Your friendly Shopify migration expert here, diving into another great discussion from the community forums. We recently saw a super common, yet often overlooked, design snag that many store owners bump into: those stubborn input fields that just won't stay round when you click on them!

Our friend @filials brought up a classic scenario on the Shopify forums. They were trying to get those lovely rounded corners on their newsletter email signup box, and even their currency search box, on their store c-tama.com (running the Dawn theme). They managed to get the initial rounding, which is great! But then, the moment you clicked or tabbed into those fields, poof – the rounding disappeared, and they went back to being square. Frustrating, right?

image

Check Your Dawn Theme Settings First!

Before you even think about custom code, it's always a good practice to poke around your theme settings. As @Maximus3 highlighted in the discussion, the Dawn theme, in particular, is pretty robust when it comes to visual customization right out of the box. You might find options for input field styling, including border-radius, directly in your theme editor!

It's worth double-checking if there are global input field settings or specific section settings (like for your newsletter block) that control border styles. Sometimes, you can save yourself a lot of hassle by just toggling a setting. If the general rounding isn't taking, or if you've added your own custom CSS for the initial rounding, this might not be the full solution, but it's always a solid first step.

Screenshot 2026-06-09 185524

Screenshot (218)

The CSS Fix for Those Pesky Focus Borders

Alright, so if the theme settings don't quite get you there, or if you're dealing with a specific browser default behavior, then it's time to roll up our sleeves with a little CSS. This is where @Guleria swooped in with the perfect, concise solution that @filials confirmed fixed their issue instantly!

The problem often lies with the browser's default "focus" outline or box-shadow. When you click or tab into an input field, browsers usually add a visual indicator to show that it's active. This indicator can sometimes override or clash with your custom styling, making your beautifully rounded corners look square again. The key is to target this specific focus state without affecting other accessibility features.

Here's the CSS snippet that did the trick:

*:focus-visible {
    box-shadow: none !important;
}

Breaking Down the Code

Let's break down what's happening here:

  • *:focus-visible: This is a pseudo-class that targets any element that is currently focused by the user, but only when the focus is "visible" to the user. This is an important distinction from :focus, which applies whenever an element has focus, regardless of how it received it (e.g., programmatic focus). :focus-visible is more user-friendly for accessibility, as it typically only shows the outline when a keyboard is used for navigation, not just a mouse click. By targeting :focus-visible, we ensure we're only modifying the visual indicator when it truly matters for user navigation.
  • box-shadow: none !important;: This is the magic part! It explicitly removes any box-shadow that the browser might be applying to the focused element. Browsers often use a box-shadow or an outline property to create that default focus indicator. By setting box-shadow: none, we're telling the browser to stop applying that particular visual effect. The !important flag is used here to ensure that this style overrides any other conflicting styles, including browser defaults or other theme-defined styles that might be setting a box-shadow on focus. It's a powerful override, and in this specific case, it's very effective for ensuring your custom styles take precedence for this particular behavior.

How to Implement This CSS in Your Shopify Store

Ready to banish those square focus borders? Here's how you can add this CSS to your Shopify Dawn theme:

  1. Navigate to Your Theme Editor:
    • From your Shopify admin dashboard, go to Online Store > Themes.
    • Find your current theme (likely Dawn).
    • Click on Actions > Edit code.
  2. Locate Your CSS File:
    • In the 'Assets' folder, you'll typically find a CSS file like base.css, theme.css, or custom.css. You can also add it at the very bottom of your theme.liquid file, within tags, but adding it to a dedicated CSS file is generally cleaner.
    • A good place for custom CSS is often at the very end of base.css or, even better, create a new file named something like custom.css (if your theme supports it or you're comfortable linking it in theme.liquid). For simplicity, let's assume you're adding it to an existing CSS file.
  3. Add the CSS Snippet:
    • Scroll to the very bottom of your chosen CSS file.
    • Paste the following code:
    *:focus-visible {
        box-shadow: none !important;
    }
    
  4. Save Your Changes:
    • Click the Save button in the top right corner.
  5. Test Your Store:
    • Visit your online store and test your newsletter signup box and any other input fields. You should now see your beautiful rounded borders remain intact when you click or tab into them!

It's these little details that truly elevate the user experience on your Shopify store. A consistent design, even down to the active state of an input field, contributes to a polished and professional look. So, whether you fix it through theme settings or a quick CSS snippet, making sure your site behaves the way you intend is key!

Big thanks to @filials for bringing this up and to @Guleria for the spot-on solution. It's a great example of how the community helps each other out with those tiny tweaks that make a big difference. Keep those questions coming, and happy customizing!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools