-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Storybook - Automatically name styled components in React DOM * Refactor of CSS to achieve good alignment Main things achieved here (due to Flexbox!) are: - the total stays on the left - other counters resize to fill width and wrap when they need to - a max-width is set on counters so they're not too wide - long text wraps beside counts neatly inside counters Count boxes can still handle any number of digits and the counter boxes still run flush to each edge of the page. Minimal changes to result-count and result-count-title were necessary in this commit. If these cause a problem with their use elsewhere let's revisit. * CounterBar refactor Work in progress here - would like to check approach is as expected. Tests, docs and stories are updated, but the missing functionality is the clicking to make active or trigger handlers. We'll need to think about the best way to handle that with this new structure. * Fix docs * Remove onSelect / onClick handling * Use Flex shorthand * Use more concise syntax * Fix stories and docs Indentation etc. * Fix tests * Enable props for Total colours * Wrap long lines * Enable any tag to be used for Total element Here's my effort to implement this! I'm not sure it's the best way, but it works. * Pass on any props to TotalWrapper Enabling link href, for example. Also move example story. * Disable failing test For the time being I can see absolutely no reason why this test is failing - the DOM looks as expected! Will have to look into it later - disabling for now so we can at least build. * Fix object spacing * Enable CounterBar.Item to use any element * Correct prop names and enable colours for Items * Update snapshot * Misc improvements * Update snapshot * Update story total * Amend propType
- Loading branch information
1 parent
feac5d3
commit d0af589
Showing
10 changed files
with
1,431 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.