Skip to content

Commit 18f1901

Browse files
Dave ZuchDave Zuch
Dave Zuch
authored and
Dave Zuch
committed
FBCM-5076 Add pill blocks
We add variants style buttons to `Button` which we call "pills". These are intended for button-like elements that require a more "flat" appearance. We depart a bit from the traditional "block" pattern here, which has proved difficult to scale, when there are a multiplicity of variants. Instead, we use `Option` to provide a convenient API for taking advantage of the various configurations we offer. We won't know for sure without enough usage, but this does seem a major improvement over the current "block" pattern, and we ought to consider adopting it more broadly.
1 parent 9145355 commit 18f1901

8 files changed

+665
-3
lines changed

css/src/index.css

+2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ dt {
191191
.group:hover .group-hover\:\!focus\:\!disabled\:sibling\:border-grey-70:not(:focus):not(:disabled) ~ * { @apply .border-grey-70; }
192192
.focus\:next\:text-blue-88:focus + * { @apply .text-blue-88; }
193193
.\!active\:border-b:not(:active) { @apply .border-b; }
194+
.\!active\:border-b-2:not(:active) { @apply .border-b-2; }
194195
.active\:border-t:active { @apply .border-t; }
196+
.active\:border-t-2:active { @apply .border-t-2; }
195197
.disabled\:opacity-50:disabled { @apply .opacity-50; }
196198
.disabled\:cursor-default:disabled { @apply .cursor-default; }
197199
.\!disabled\:cursor-pointer:not(:disabled) { @apply .cursor-pointer; }

css/src/tailwind.js

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ config.colors = Object.assign(config.colors, {
6666
'blue-75': '#009FBF',
6767
'blue-82': '#00ABD1',
6868
'blue-88': '#00BBE0',
69+
'blue-88-a40': '#00BBE060',
6970
'facebook-blue': '#3B5998',
7071
'fb-blue': '#3B5998',
7172
'google-blue': '#4285F4',

0 commit comments

Comments
 (0)