Smashing Newsletter #260: Disabled Buttons, CORS, JavaScript

With CORS, disabled buttons, JavaScript, community links and a dash of CSS. Issue #260 Tue, Aug 4, 2020 View in the browser 💨

Smashing Newsletter

Dear Friend,

What an incredible community we have! There are plenty of articles, podcasts, tips, newsletters, and tooling that wonderful people around the world release and share — often for free — so that we all can learn from each other.

Every month I try to remind myself to check the sites of people who share what they’ve learned and find a way to support them somehow. It can be Patreon, or it could be buying their books or templates or goodies — even though I might not be able to use them.

  • Ahmad Shadeed is currently writing a book on Debugging CSS which might be worth checking out;
  • Cassie Evans is running fantastic workshops on SVG animation;
  • Amelia Wattenberger has published a jam-packed book on Fullstack D3 and Data Visualization;
  • Stephanie Walter is running various UX workshops;
  • Umar Hansa has a packed video course on Modern DevTools.

And we always applaud the wonderful effort of our colleagues at CSS-Tricks, Codrops, UX Collective, UX Design Weekly (among so many others!) — all fantastic resources for all of us to get better at our work.

We are all in this together, as a community. So let’s support and care about each other, especially in these difficult times!

— Vitaly (@smashingmag)


Table of Contents

1. Practical Tips For Rebranding A Product
2. Disabled Buttons And How To Do Better
3. A CSS-Only, Animated, Wrapping Underline
4. Smashing Online Workshops 2020
5. Getting To Grips With CORS
6. Natively Format JavaScript Dates And Times
7. Mineralogy Illustrations Sorted By Color
8. Upcoming In Smashing Membership
9. Our Next Smashing Workshops
10. New On Smashing Job Board
11. Our Current Most Popular Articles

1. Practical Tips For Rebranding A Product

Do we rebrand? And when is the right time to do so? A lot of product people are asking themselves these questions as their product becomes more mature. The team at Overflow was in the same situation a while ago.

Evolving the Overflow Brand

To reflect the evolution of their product from an easy-to-use, practical flow diagramming tool into a tool that is used for design communication and presentation workflows, they decided that it was time for a rebranding. In the article “Evolving the Overflow Brand”, they share their approach and what they learned along the way. Interesting ideas and takeaways that you can incorporate into your own redesign process. One that particularly helps make the challenge more approachable: Think of your product as a human being and imagine what they are like and how they feel to visualize your brand’s new identity. (cm)


2. Disabled Buttons And How To Do Better

Disabled buttons suck.” It’s a strong statement that Hampus Sethfors makes against this widespread UI pattern. As Hampus argues, disabled buttons usually harm the user experience, causing irritation and confusion when nothing happens when a button that carries an action word like “Send” is clicked. But they do not only prevent people from completing tasks with as little effort as possible, disabled buttons also create barriers for people with disabilities — due to issues with low contrast and assistive technologies not being able to navigate to disabled buttons. Now, how can we do better?

Disabled buttons suck

Hampus suggests to keep buttons enabled by default and show an error message when a user clicks it. If you want to indicate that a button is disabled, you could use CSS to make it look a bit grayed out (considering contrast, of course) but keep it enabled and put focus on a meaningful error message. A small detail that makes a difference. (cm)


From our sponsor

Build in-demand skills in Northwestern’s online MS in Info. Design & Strategy

Work at the Intersection of Data, Design and Technology. Earn your master’s degree online at Northwestern Information Design and Strategy.
Earn your master’s degree online.


3. A CSS-Only, Animated, Wrapping Underline

Underlines are hard, especially if you want to do something that goes beyond the good ol’ text-decoration: underline. Inspired by a hover effect he saw in the link underline on Cassie Evans’ blog, Nicky Meulemann decided to create something similar: a colored underline with a hover effect where the line retreats and is replaced by a differently colored line.

A CSS-only, animated, wrapping underline

The twist: The lines should not touch during the animation and, most importantly, links that wrap onto new lines should have the underline beneath all lines. If you want to follow along step by step how it’s done, be sure to check out Nicky’s tutorial. (cm)


4. Smashing Online Workshops 2020

A while back, we’ve launched our online workshops on front-end & UX to help all of us boost our skills online. As our workshops span over 2–3 weeks, attendees find time to learn and do homework and make connections that wouldn’t be easy to build otherwise.

Smashing Online Events

It’s wonderful to see small communities emerging within those workshops. Attendees sharing what they’ve learned, coding, designing together — waking up in the middle of the night to join in! All these things are incredibly rewarding to see.

We’ve just announced new workshops recently — on behavioral design, web security, front-end testing and many others, so take a look, and perhaps join us as well. (vf)


5. Getting To Grips With CORS

Access to fetched has been blocked by CORS policy. Getting this error message in your console might be frustrating, but it’s a sign that CORS is doing a great job keeping your site secure. To dive deeper into what CORS is actually doing — and why it’s actually our friend —, Lydia Hallie wrote “CS Visualized: CORS”.

CORS Visualized

In the article, Lydia illustrates what cross-browser requests are and how we can use CORS to make sure we’re accessing those resources safely. She looks into client-side and server-side CORS and the difference between simple and preflighted requests. Last but not least, there are also tips for what you need to consider when it comes to cookies, authorization headers, and TLS certificates. A handy resource. (cm)


From our sponsor

Learn How Designs Intersects With Changes Caused By the Pandemic

Adobe Wireframe Podcast
Whether you’re into UX/UI, or tech, the show is a must-listen.
Listen Now!


6. Natively Format JavaScript Dates And Times

Do we still need libraries like Moment.js or date-fns to format JavaScript dates and times? With native browser capabilities being quite good these days and browser support being great, too, not necessarily, as Elijah Manor points out.

Natively Format JavaScript Dates and Times

Elijah summarized three different methods for dealing with time and dates. The toLocaleDateString method comes in handy when you want a date that contains only numbers, a long wordy date, or one that outputs in a different language. If you only need to output the time portion of a JavaScript date object, there’s toLocaleTimeString. Finally, the generic method toLocaleString lets you pass one or all of the options from the former ones into one method. Elijah built a CodeSandbox playground where you can experiment with the different approaches. (cm)


7. Mineralogy Illustrations Sorted By Color

Have you ever had an idea popping into your head that you couldn’t let go of? When Nicholas Rougeux came across the massive collection of mineral illustrations that British naturalist and illustrator James Sowerby created at the beginning of the 19th century, he wondered what they would look like arranged by color in a big collage. And, well, he spent the next four months doing exactly that: arranging all of Sowerby’s illustrations from the 718-plates-strong series British Mineralogy containing minerals found within Great Britain and Exotic Mineralogy containing those from beyond its borders.

British and Exotic Mineralogy

The result is the stunning project British & Exotic Mineralogy. A fascinating artwork that creates a bridge between the meticulous work of two people living two centuries apart and the techniques they used — from the paintbox to modern web technologies. If you want to learn more about Nicholas’ approach and the challenges he faced along the way, there’s an accompanying blog post in which he shares a look behind the scenes. (cm)


From our sponsor

Learn the secret to easily gaining design approval, and so much more.

Get Design Approval. A Free Online Workshop.
Getting design approval from stakeholders is a challenge faced by all designers and project managers. Fortunately, it can be easier than you think! Smashing author and speaker Paul Boag shares how in his free video class. Sign up and also get regular advice on UX design, increasing conversion and more. Learn more and enroll here.


8. Upcoming In Smashing Membership

Topple busy recording new content for Smashing TV

Dear friends, thank you for your kind support. It allows us to bring you great content, pay all our contributors fairly, and reduce advertising on the site. Join us in Smashingland where everyone is beautiful and you never get merge conflicts. 😉


9. Our Next Smashing Workshops

In our workshops, we explore best practices and interesting techniques in front-end and interface design, always focusing on actual solutions to real-life problems.

We also have online workshops that are designed to give you the same experience and access to experts as in an in-person workshop, but without needing to leave your desk.

Design Workshops

Front-End Workshops

Practicing skills matters. Meow!
Meet Smashing Online Workshops on front-end & UX, with Yiying Lu, Natalia Tepluhina, Christian Nwamba, and many others.

Or, if you’d like to run an online workshop with your team, please get in touch with Vitaly at vitaly@smashingconf.com and briefly describe what problems you’re facing and would like to solve. Get in touch — it’s that easy! (vf)


10. New On Smashing Job Board

  • Director Of User Technology Platforms at MIT Sloan Management Review (Boston, MA)
    “We’re looking for someone who will perform development tasks and troubleshooting, ensure security and maintenance of digital platforms, manage contract developers and cross-functional teams, support SMR’s revenue and content goals through digital projects.”
  • Frontend Designer And Developer at Fugue, Inc. (Washington DC)
    “We’re looking for a creative frontend designer/developer who enjoys the full process of taking a design from concept to completion, including establishing requirements, building prototypes, and working with a team to implement the final product.”
  • Software Engineer at Microsoft (Prague)
    “Our team is responsible for the desktop platform that enables Microsoft Teams and several other Microsoft Products. We are at the forefront of Desktop development in Microsoft, focusing on delivering a modern Desktop experience using a combination of Electron and web technologies.”

11. Our Current Most Popular Articles


This newsletter issue was written and researched by Cosima Mielke, Iris Lješnjanin, Vitaly Friedman, Rachel Andrew and Christiane Rosenberger.


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You
rock.

Follow us on Twitter Join us on Facebook


unsubscribe update preferences view in your browser


Older messages

Let’s Make The Best Out Of This Year.

Tuesday, July 28, 2020

Meet our new online workshops and SmashingConf Live with Aarron Walter, Susan Weinschenk, Yiying Lu, Umar Hansa and Vitaly Friedman. With interactive exercises and a friendly Q&A. Brand new: online

Smashing Newsletter #259: State of CSS/JS, “Back” Button UX, SVG

Tuesday, July 21, 2020

With SVG patterns, machine learning, hosting providers, type specimens and front-end online workshops.Issue #259 • Tue, July 21, 2020 • View in the browser 💨 Smashing Newsletter Dear Friend, Last week,

Smashing Newsletter #258: Custom Dropdowns, CSS, Performance and Building Tools

Tuesday, July 7, 2020

With custom dropdowns, front-end build tools, CSS, performance monitoring and high contrast mode.Issue #258 • Tue, July 7, 2020 • View in the browser 💨 Smashing Newsletter Dear Friend, No project comes

New Online Workshops on Front-End & UX. The Smashing Way.

Tuesday, June 30, 2020

Boost your skills on design systems, psychology, eCommerce, security and JAMStack. Our new online workshops on front-end and UX, the smashing way. With interactive exercises and a friendly Q&A.

Smashing Newsletter #257: Hybrid CSS Positioning, Free Fonts, Push Notifications

Tuesday, June 23, 2020

With front-end techniques, a detailed anatomy of push notifications, podcasts around security and hacking and free fonts for personal and commercial use. Issue #257 • Tue, June 23, 2020 • View in the

You Might Also Like

My product prioritization framework

Sunday, April 28, 2024

Issue 192: How I triage strategy ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Cascade, HTMX, Sponge Furniture, Meaning of Color, Flipbook

Friday, April 26, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 26 2024 A primer on the cascade and specificity piccalil.

9 Trends From Milan We Can’t Stop Thinking About

Thursday, April 25, 2024

View in your browser | Update your preferences ADPro Even More From Milan Design Week Each year, the design world convenes in Milan—and that applies to us at AD, too. For the third year running, our

Subframe, Attributes vs Properties, Front End Handbook, aspect-ratio, GenAI

Thursday, April 25, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 25 2024 Subframe subframe.com Subframe is a design-to-

Ritmo, Climate Change, Icons & Typefaces, Click Wheel JS, CarPlay

Wednesday, April 24, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 24 2024 Meet Ritmo, Musixmatch's cross-platform

Why Jake Arnold Doesn’t Text Clients

Tuesday, April 23, 2024

View in your browser | Update your preferences We've had a remodel! From now on, you'll be hearing from AD PRO in your inbox twice a week—once with a deep dive into trends to watch and subjects

The secret ingredient to media success

Tuesday, April 23, 2024

PR tips from our founder Nora Wolf In this month's edition is all about *the most important* element of successful media outreach—photography. You may have some photos, but if the backgrounds are

#453: Design Systems

Tuesday, April 23, 2024

Design system generator, types of design systems and how to consolidate design systems. Issue #453 • Apr 23, 2024 • View in the browser Smashing Newsletter Buổi tối vui vẻ Smashing Friends, Ah, design

👨‍🏫 Striking Educational Website Designs + 🏆 Challenge Updates

Tuesday, April 23, 2024

Your UpLabs Design Updates Await! Let's Get Going! 🎨 Firstly, let's congratulate Mariana Gameiro, the winner of our latest 👩‍💻 SheCodes Website Redesign Challenge! Congratulations!! Secondly,

Code Connect, JS Naked Day, Shape of AI, Product Design, CSS Grid Level 3

Tuesday, April 23, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 23 2024 The Right Code for Your Design System figma.com