• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
 
Filters
20 results tagged buttons

Beautiful focus outlines · Medienbäcker Thomas Günther

QRCode

Here’s my starting point for custom focus outlines:

*:focus-visible {
outline-color: currentColor;
outline-style: solid;
outline-offset: .25rem;
outline-width: .25rem;
}

https://medienbaecker.com/articles/focus-outlines
January 2, 2025 at 11:02:30 AM EST *
forms webdesign accessibility buttons
FILLER

How I build a button component - Piccalilli

QRCode

A button is arguably the most likely component to find itself in your codebase so I’m going to show you how I approach building one.

https://piccalil.li/blog/how-i-build-a-button-component/
October 7, 2024 at 3:35:02 PM EDT *
buttons css webdesign
FILLER

CSS Button Styles You Might Not Know | David Bushell

QRCode

Visual Focus

Accessibility is for everyone. I like using keyboard navigation to tab through interactive elements. Sadly I’ve lost count of how many clients have asked me to “remove that ugly border” around focused buttons.

Button focus state can be improved with two tricks:

.button {
  &:focus-visible {
    outline: 2px solid magenta;
    outline-offset: 2px;
  }
}

First, I replace the default focus pseudo-class with focus-visible. MDN has a long section on focus vs focus-visible. Basically it’s what the original should have been in hindsight.

https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible#focus_vs_focus-visible

Second, I use outline-offset to give some breathing room between the focus ring and the button itself. If the button has a prominent border style the outline would sit flush against it looking like a double border. Adding an offset makes the focus state more visible.

One thing to note is that ::file-selector-button does not get focus, rather the parent input does, so apply styles there.

https://dbushell.com/2024/03/10/css-button-styles-you-might-not-know/
March 18, 2024 at 1:43:14 PM EDT *
buttons forms accessibility webdesign
FILLER

Designing better target sizes

QRCode

An interactive guide on designing better target sizes on the web.

https://ishadeed.com/article/target-size/
March 18, 2024 at 1:34:56 PM EDT *
buttons forms accessibility webdesign
FILLER

3 useful CSS hacks | Kevin Powell

QRCode

border-radius: 100vmax;

.full-width {
box-shadow: 0 0 0 100vmax var( --color );
clip-path: inset( 0 -100vmax );
}

https://www.youtube.com/watch?v=MywezIxlp8Y
March 18, 2023 at 11:01:42 AM EDT *
css webdesign forms buttons
FILLER

Neumorphism/Soft UI CSS shadow generator

QRCode

CSS code generator that will help with colors, gradients and shadows to adapt this new design trend or discover its posibilities.

https://neumorphism.io/#e0e0e0
December 23, 2022 at 11:23:17 AM EST *
css webdesign buttons shadow
FILLER

Pure CSS Custom Styled Radio Buttons | Modern CSS Solutions

QRCode

Learn to create custom, cross-browser, theme-able, scalable radio buttons in pure CSS and ensuring styles remain accessible across states.

Also checkboxes:
https://moderncss.dev/pure-css-custom-checkbox-style/

https://www.sarasoueidan.com/blog/inclusively-hiding-and-styling-checkboxes-and-radio-buttons/

https://moderncss.dev/pure-css-custom-styled-radio-buttons/
October 29, 2021 at 11:36:14 AM EDT *
checkbox forms buttons webdesign
FILLER

Better in Black: Rethinking our Most Important Buttons | Spotify Design

QRCode

If there's one button you use every time you open Spotify, it’s the play button. Today, we’re updating it significantly for better accessibility.

https://spotify.design/article/better-in-black-rethinking-our-most-important-buttons?ref=heydesigner
May 26, 2021 at 10:26:07 AM EDT *
accessibility webdesign buttons
FILLER

Button Design — UI component series

QRCode

The button state communicate its status to the user
Creating correct interactions and styles for your buttons is one of the most important parts of the process. Each state must have clear affordances that distinguish it from other states and the surrounding layout, but should not drastically alter a component or create a lot of visual noise.

https://uxdesign.cc/button-design-user-interface-components-series-85243b6736c7
April 23, 2021 at 8:06:46 AM EDT *
buttons webdesign
FILLER

ButtonBuddy - Accessible button contrast generator

QRCode

Learn what it takes to ensure your buttons or button-styled links have accessible contrast across all states and surfaces, then use the generator to check and adjust your button palette.

https://buttonbuddy.dev/#generator
January 29, 2021 at 11:50:09 AM EST *
buttons accessibility css webdesign
FILLER

The Ultimate Guide to Bulletproof Buttons in Email Design - Litmus

QRCode

Padding + Border-Based Buttons

The padding and border-based buttons combine elements of the previous two approaches.

Essentially, this approach uses the same structure of styling the link with both padding and at least a solid 1px border. Then, a background color is applied to the to fill the entire background of the link. The background color needs to be applied to the instead of the <a> in this instance because Outlook does not recognize horizontal padding on the <a> tag (since it does not support such styling for non block-level HTML elements).

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" style="border-radius: 3px;" bgcolor="#e9703e"><a href="https://litmus.com" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; text-decoration: none;border-radius: 3px; padding: 12px 18px; border: 1px solid #e9703e; display: inline-block;">I am a button →</a></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Horizontal Padding Hack for Outlook
A quick hack that can be used to increase the horizontal “padding” for Outlook is to conditionally add inline non-breaking space(s) on each side of the link.

<!--[if mso]> <![endif]-->
https://www.litmus.com/blog/a-guide-to-bulletproof-buttons-in-email-design/
January 8, 2021 at 9:46:08 AM EST *
email buttons
FILLER

5 Rules for Choosing the Right Words on Button Labels

QRCode
  • Use Action Verbs (not generic yes/no)
  • Use Precise Diction (Remove vs. Delete)
  • Use Task-Specific Language (Publish vs Submit)
  • Use the Active Imperative Form (Read Details vs Click Here for Details)
  • Use Sentence-Style Capitalization (Friendlier than Title Case)

Comment:
If you test people on an app the first time they use it, Title Case will slow you down, just as it probably did just now. However, it is much easier to see the shape of Title Case text in buttons than sentence case buttons.

https://uxmovement.com/buttons/5-rules-for-choosing-the-right-words-on-button-labels/
August 21, 2019 at 10:31:46 AM EDT *
ux buttons webdesign
FILLER

Button differentiation done right – UX Collective

QRCode

Buttons normally have those traits in common: font style, font size, font color, button color, button size, borders, rounded corners, drop shadow or glow effects, hover state and animations.

If we try to change too many of these traits, the buttons might feel too foreign to the general design of the project, and in this case the user will just click the most distinct one, and we’re basically back to just one CTA button.

https://uxdesign.cc/button-differentiation-done-right-5553605ea08a
July 12, 2019 at 1:11:46 PM EDT *
buttons css webdesign
FILLER

Designing button focus states for better usability - DEV Community 👩‍💻👨‍💻

QRCode

Many people exclusively use keyboards to navigate, and rely on the focus state to know where they are on the page.

There's a huge variety of reasons why someone might use a keyboard over a mouse, and for many, using the mouse as a fallback just isn't an option.

https://dev.to/elizabethschafer/designing-button-focus-states-for-better-usability-gm2
July 3, 2019 at 12:57:44 PM EDT *
css webdesign buttons accessibility
FILLER

Buttons in Design Systems – EightShapes – Medium

QRCode

That’s why Buttons are arguably a design system’s most important component. Devilishly simple, they offer a simple label in a defined region I can press. As such, buttons are where you apply a design language’s base attributes in ways that’ll ripple throughout more complex component later.

Here’s 12 lessons I’ve learned when working the primary button, secondary buttons, and a whole host of other button types in an emerging system.

https://medium.com/eightshapes-llc/buttons-in-design-systems-eac3acf7e23
August 2, 2017 at 10:15:11 AM EDT *
buttons webdesign styleguide
FILLER

Toolbar

QRCode
http://codepen.io/cameronbaney/details/Drjxe/
December 6, 2016 at 3:02:31 PM EST *
css webdesign forms buttons
FILLER

Material Design buttons

QRCode
https://www.behance.net/gallery/23056487/Material-Design-Button-Animation
November 26, 2016 at 9:11:03 AM EST *
webdesign buttons
FILLER

Color Picker - Explore Colors for HTML and CSS

QRCode

Use 10% lighten and darken for hover/active states. Used the second darken for the button border

http://www.hexcolortool.com/
September 13, 2016 at 9:09:43 AM EDT *
color colorscheme webdesign css buttons
FILLER

https://css-tricks.com/youtube-popup-buttons/

QRCode

There is a certain style of button on the latest YouTube design (most easily found in the footer) where the default state of the button has a very subtle bevel to it, but on :hover and :focus states the button pops up, eager to be clicked.

https://css-tricks.com/youtube-popup-buttons/
August 20, 2016 at 8:02:17 AM EDT *
webdesign css buttons
FILLER

Google+ Buttons in CSS | Improve your UI | Pixify

QRCode
http://pixify.com/blog/use-google-plus-to-improve-your-ui/
August 9, 2011 at 1:06:48 PM EDT *
css buttons
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community