-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClayButton borderless #397
Comments
@carloslancha We have this |
@pat270 lexicon doesn't define the outlines styles so in ClayButton we're just adding the class |
For us |
We should also be considering the things Bootstrap has provided. |
I'm just following docs https://lexicondesign.io/docs/patterns/buttons.html |
Bystander’s 2cents again: both If you called it |
I have to agree with @yuchi that Some other possibilities might be (if they're not already being used) But as I'm writing this, I think Pier had it right, |
Thanks @natecavanaugh. You are indeed right that “tertiary” does imply a lower level in the hierarchy and the docs do not imply that. Anyway that specific proposal was just to give an example. |
I like the name Edit: I say unused, but |
Hi, thanks everyone for chiming in! There are different realities we need to reconcile here: Clay as a general CSS frameworkI think this is where the stance against Clay as a web implementation of Lexicon Experience LanguageThis is what we are actually preaching, above the general css framework. We want to build and adhere to Lexicon standards easily by using Clay. For someone checking Lexicon, and seeing there are 4 main types of buttons ( I think, for us, Lexicon defines semantics , and so far, those 4 types are the button semantics we have. I'll defer discussions about that to @victorvalle and the rest of the Lexicon team. If a better, more meaningful name for For as long as I remember, @victorvalle, @juanhidalgo and others have continually asked us to stick to their guidelines for better consistency. As @pat270 mentions, Clay is already bloated as it is, but it is with things Lexicon doesn't define or want to see in an application following it's guidelines. This, however, looks like something they do want, so it shouldn't be counted as bloat. Clay as a framework for componentsThe last piece of the puzzle is Clay as CSS framework for components. In trying to provide an easy way to implement Lexicon interfaces, we're realizing the different abstract Lexicon molecules into clay-components Imagine this scenario (not real) where we have 4 types of main buttons // Button A
<button class="btn btn-A">...</button>
// Button B
<button class="btn btn-B">...</button>
// Button C
<button class="btn btn-something btn-anotherthing btn-C">...</button>
// Button D
<a class="btn link-btn link-btn-D">...</a> I think it's easy to see that this is less than convenient when trying to generalize markup and put it into reusable pieces since the variations are not predictable and consistent. TL;DR (but got this far) |
So, a brief update. After checking with @victorvalle and the Lexicon team, Borderless is indeed a variation, not a new type of button. They will proceed to document it in a different way and we can proceed to remove it from the clay component implementation. If someone wants a borderless button, as @pat270 mentioned, she can use the Closing here, thanks everyone! |
We need
btn-borderless
class to fit with Lexicon style:https://lexicondesign.io/docs/patterns/buttons.html
Right now we have this:
The text was updated successfully, but these errors were encountered: