Skip to content

Form variables#275

Merged
tysongach merged 2 commits intomasterfrom
tg-form-variables
Feb 27, 2017
Merged

Form variables#275
tysongach merged 2 commits intomasterfrom
tg-form-variables

Conversation

@tysongach
Copy link
Contributor

  • Put component-specific variables in its partial
    • Component-specific variables are variables that are used only for one component. They are unique from global variables in this way.
    • They should be prefixed by one underscore to indicate that they are “private” to the component/partial they are defined within.
    • Closes Rethinking what a variable is in Bitters #267
  • Simplify input focus box-shadow

@@ -1,3 +1,6 @@
$_form-box-shadow: inset 0 1px 3px rgba(#000, 0.06);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color literals like rgba(#000, 0.06) should only be used in variable declarations; they should be referred to via variable everywhere else.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be aiming to squash all these? It's frustrating to have a bunch of Hound comments on a bitters install.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’d be nice to not have that happen, yeah. Do you want to open a PR for #260?

@@ -1,3 +1,6 @@
$_form-box-shadow: inset 0 1px 3px rgba(#000, 0.06);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color literals like rgba(#000, 0.06) should only be used in variable declarations; they should be referred to via variable everywhere else.

@creuter
Copy link

creuter commented Feb 17, 2017

Is form a component if it's just a collection of default elements?

@tysongach
Copy link
Contributor Author

Is form a component if it's just a collection of default elements?

Yeah, I really meant component/object/element/partial…

@whmii
Copy link
Contributor

whmii commented Feb 24, 2017

lgtm

- Component-specific variables are variables that are used only for one
component. They are unique from global variables in this way.
- They should be prefixed by one underscore to indicate that they are
"private" to the component/partial they are defined within.
- Closes #267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rethinking what a variable is in Bitters

4 participants