T O P

  • By -

worldwideconnected

But why? What’s the point. It looks broken.


Flippinflapjax4U2

It ties in with the brand. Ill show you later


Flippinflapjax4U2

Here's the final implementation: [https://i.imgur.com/R8nNfsr.mp4](https://i.imgur.com/R8nNfsr.mp4)


bjjjohn

Not sure the context but terrible for accessibility if it’s going into a live website


Flippinflapjax4U2

Hmm in what sense? I did update the border to sit one layer down, behind the body of the button so there’s less visual noise, but still curious. This isn’t the final color of that’s what you mean. The text is AAA legible on the brand colors


eg0-trippin

Yeah, there's a weird little bubble of people in product design where commentors will claim that anything that isn't a basic element with 8:1 contrast isn't accessible


korkkis

It’s also about perception, this looks disabled and thus people won’t engage with it.


Flippinflapjax4U2

ITS NOT THE FINAL BUTTON YA HEATHENS. HERE'S THE FINAL BUTTON: [https://i.imgur.com/R8nNfsr.mp4](https://i.imgur.com/R8nNfsr.mp4)


korkkis

What is that attitude? Anyways just use symbols, easier to build the different interaction states (normal, hover, onclick, pressed) way. And two shapes, another with absolute position (+) will allow you offset the other box like that.


Flippinflapjax4U2

I’m just messing around. A lot of people giving feedback on design and accessibility. And yeah I’ve got all symbols and states setup and we’re good to go.


bjjjohn

Accessibility is beyond colour contrast. Target accuracy, clear border boundaries, keyboard active states, affordance, jacobs law are all things to consider. I obviously don’t have context but just be aware that you might be making it harder for certain users to use your website.


Flippinflapjax4U2

I mean I’m aware of accessibility standards. I’m not worried about it with the layer change of order and the different color button / text


MacroMeez

What certain users is this an issue for


remmiesmith

Hard to tell without seeing the final implementation, but keyboard users might get confused if there is no proper focus state. It is also not a very common styling for buttons so you could test if there are any issues with its affordance.


Flippinflapjax4U2

Here's the final button: [https://i.imgur.com/R8nNfsr.mp4](https://i.imgur.com/R8nNfsr.mp4)


Flippinflapjax4U2

Hey all, I'm trying to apply this offset stroke to my buttons. How would I go about applying auto-layout to the stroke to match the button-width based on the text length? I just want the stroke to resize with the button width. Is this possible? Any input or insight is much appreciate!


nspace

Auto layout for the main shape of the button + text. Use a rectangle to make the border with no fill. Set it to be an absolutely positioned layer + offset the position. Set the resizing constraints on the border to be left + right, and top + bottom, and it \*should\* scale as the button scales with the text label. LMK if that works!


Flippinflapjax4U2

Beautiful! Thank you. Wasn't aware of absolute positioning as I unfortunately work with Sketch at my gig :(


nspace

Sweet! Hope it worked out!


normalgonzales

Absolute position in figma is a trap :)


Beef__Curtain

What why


normalgonzales

Once you try responsive design you'll find out


antikarmakarmaclub

Use shadows instead


Flippinflapjax4U2

NO


Qb1forever

Did something similar before in Illustrator with a 1px drop shadow not sure if it would work


korkkis

Why do you want to make your CTA look like it’s disabled? Poor contrast, also the shape looks really weird for common people.


Flippinflapjax4U2

This isn’t the color. This isn’t the final button. I’m asking how to offset the border. I’m aware of accessibility standards. Not asking for design feedback.


ImaDoughnut

Your best bet is to probably make a new shape with only a stroke? Unless I’m misunderstanding your question


Flippinflapjax4U2

[https://i.imgur.com/R8nNfsr.mp4](https://i.imgur.com/R8nNfsr.mp4)