Skip to content

Commit

Permalink
refactor: remove space
Browse files Browse the repository at this point in the history
  • Loading branch information
mogusbi-motech committed Feb 17, 2023
1 parent 86ab407 commit 067d84b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/project-tailwind/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function Button<E extends ElementType = typeof DEFAULT_ELEMENT>({
primary: [
'bg-blue-600 text-white',
{
'hover:bg-blue-700 focus:ring-blue-500 ': !disabled,
'hover:bg-blue-700 focus:ring-blue-500': !disabled,
},
],
secondary: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exports[`Button as element "a" danger should render the correct output when size
exports[`Button as element "a" primary should render the correct output when block element 1`] = `
<DocumentFragment>
<a
class="w-full group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="w-full group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
href="https://motech-development.github.io/platform/"
>
Test
Expand All @@ -93,7 +93,7 @@ exports[`Button as element "a" primary should render the correct output when dis
exports[`Button as element "a" primary should render the correct output when size is lg 1`] = `
<DocumentFragment>
<a
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-4 px-6 text-lg bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-4 px-6 text-lg bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
href="https://motech-development.github.io/platform/"
>
Test
Expand All @@ -104,7 +104,7 @@ exports[`Button as element "a" primary should render the correct output when siz
exports[`Button as element "a" primary should render the correct output when size is md 1`] = `
<DocumentFragment>
<a
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
href="https://motech-development.github.io/platform/"
>
Test
Expand All @@ -115,7 +115,7 @@ exports[`Button as element "a" primary should render the correct output when siz
exports[`Button as element "a" primary should render the correct output when size is none 1`] = `
<DocumentFragment>
<a
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 p-0 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 p-0 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
href="https://motech-development.github.io/platform/"
>
Test
Expand All @@ -126,7 +126,7 @@ exports[`Button as element "a" primary should render the correct output when siz
exports[`Button as element "a" primary should render the correct output when size is sm 1`] = `
<DocumentFragment>
<a
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-0 px-2 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-0 px-2 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
href="https://motech-development.github.io/platform/"
>
Test
Expand Down Expand Up @@ -405,7 +405,7 @@ exports[`Button as element "button" danger should render the correct output when
exports[`Button as element "button" primary should render the correct output when block element 1`] = `
<DocumentFragment>
<button
class="w-full group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="w-full group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
type="button"
>
Test
Expand All @@ -428,7 +428,7 @@ exports[`Button as element "button" primary should render the correct output whe
exports[`Button as element "button" primary should render the correct output when size is lg 1`] = `
<DocumentFragment>
<button
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-4 px-6 text-lg bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-4 px-6 text-lg bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
type="button"
>
Test
Expand All @@ -439,7 +439,7 @@ exports[`Button as element "button" primary should render the correct output whe
exports[`Button as element "button" primary should render the correct output when size is md 1`] = `
<DocumentFragment>
<button
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-2 px-4 text-base bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
type="button"
>
Test
Expand All @@ -450,7 +450,7 @@ exports[`Button as element "button" primary should render the correct output whe
exports[`Button as element "button" primary should render the correct output when size is none 1`] = `
<DocumentFragment>
<button
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 p-0 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 p-0 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
type="button"
>
Test
Expand All @@ -461,7 +461,7 @@ exports[`Button as element "button" primary should render the correct output whe
exports[`Button as element "button" primary should render the correct output when size is sm 1`] = `
<DocumentFragment>
<button
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-0 px-2 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 "
class="group items-center relative shadow-2xl inline-flex font-display justify-center font-medium transition-colors select-none focus:outline-none focus:ring-2 focus:ring-offset-2 py-0 px-2 text-sm bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500"
type="button"
>
Test
Expand Down

0 comments on commit 067d84b

Please sign in to comment.