Cutestrap v2
Installation Steps
To use the CSS as it is, you can install using npm or just download cutestrap.zip:
npm i cutestrap
Development guide
After cloning, you'll first need to install dependencies by running npm run setup
.
After that just run npm start
.
KSS will generate the docs from the kss-html
folder. The dist
folder is created from the src
folder.
Contributors
Contributors are welcome, just follow these few guidelines:
- Avoid checking in compiled files (dist and docs folders) as this will reduce merge conflicts with master
- Pass stylelint checks
License Authentication
All versions below 2.* are licensed under the MIT License, while everything after is GPLv3.
If you would like to use Cutestrap in non GPLv3 projects, you may make a donation to charity and I'll grant you an MIT license.
If you disagree, I'm open to discussion and we can talk about it on this thread where I've established my initial thoughts.
Use of implicit labels is considered bad accessibility
Recent accessibility standards recommend using explicit labels with form elements. in order to achieve this use the
for
attribute in the label pointing to theid
of the field.Wrapping the label around the input creates an implicit label, and while not wrong, has inconsistent performance among assistive technology, like screen readers.
Current Cutestrap form HTML is
I'm recommending modifying the suggested code to be:
reintroduce underline on .btn--link
as
.btn:link
is more specific than.btn--link
, thetext-decoration: none
there currently overrides the intendedtext-decoration: underline
. moving the style to.btn
fixes this, allowing for<button class="btn--link">...</button>
and<a href="..." class="btn btn--link">...</a>
to look like actual large links (with underline)closes https://github.com/cutestrap/cutestrap/issues/25
Errors installing dependencies for development
When installing the node_modules for this project, there were several errors thrown during the
npm install
:Then, when
bower install
in run, this is thrown:Finally,
gulp
fails as well:I'm not sure how much of this you have control over and how much is just a result of dependencies and their messiness. Would it worth trying other (older) node versions perhaps, or are there other things that should be installed (locally or globally)?
Text link not accessible
The text link is not fully accessible since it relies on color alone to denote that it's a link.
Suggestion 1: return the underline. (highly recommended)
Suggestion 2: provide more visual affordance that the standalone text is a link such as adding an icon.
WCAG references: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-without-color http://www.w3.org/TR/WCAG20-TECHS/F73.html
PS: Since this is a link, strange that it's listed under Buttons and the class names say button.
Default contextual colors?
I like this project, and would love to use this in future proof-of-concepts I build. I noticed though that there doesn't seem to be a built-in way to set the color of elements based on context, like in Bootstrap where you can for example set
btn-danger
on a delete-button.It's easy to add yourself in your project, but from a UX point of view I feel like it might be too important to not include as a default. Do you agree? It would also help for those who just want a good-looking proof-of-concept without having to add custom CSS.
I'd suggest using the same classes for all elements to keep it consistent, perhaps
ctx-primary
,ctx-success
,ctx-warning
, etc? I can try making a pull request if you think this is a good idea to add.Select arrow not clickable
The css arrow in select boxes (
.field select+.label::after
) is not clickable (Chrome, Firefox, others). This is an issue to users who aim for that very arrow when trying to use the menu, and give up if that doesn't work (a behavior seen in real usage testing).I think the solution might be as easy as adding an
pointer-events: none;
(well, not for Internet Explorer, but Cutestrap forms don't really work with IE anyway)remove dd text indent
removes the text indent on
dd
, which causes very unsightly visual effect when the definition description is multiline (see example screenshot below)before:
after:
alternatively, suggest changing from
text-indent
topadding-left
, which would then move alldd
content to the right, not just the beginning of each line.alternative:
Why are `
` elements given `display: table;`?
On one hand I'm just curious what the design choice here was about; on the other hand there's an issue when there's an
<img>
element within a container with.ta-center/.ta-right
-- the image won't respect the text alignment. This can be worked around however by setting appropriate margins on the image:/src/sass/ mis-match with /dist/scss/
The two sets of source files are slightly out of sync. Namely...
dd
padding/text-indent in_base.scss
;.wrapper-large
and.wrapper-small
in_grid.scss
; and.radio
and.checkbox
in_forms.scss
.It looks like
/dist/scss/
is the canonical version, but then what's the point of the/src/sass/
directory?Should tag names be included in style definitions?
I really like the minimalism of Cutestrap, but I have found myself fighting with the button styling when trying to use semantic markup in my nav elements. I was recently reading through BEM naming conventions and noticed that it specifies "No tag name or ids" for CSS selectors. Conversely, Cutestrap docs state that "A default button is applied with the .btn class or automatically on button tags or button/submit inputs."
Is this implementation of tag styling in Cutestrap intentional? Am I referencing incorrect documentation for BEM?
should wrapper-small be renamed?
I thought
wrapper-small
should be replaced withwrapper wrapper--small
even the inline docs hint at this
<div class="wrapper {{modifier_class}}">Wrapper</div>
Bump decode-uri-component from 0.2.0 to 0.2.2
Bumps decode-uri-component from 0.2.0 to 0.2.2.
Release notes
Sourced from decode-uri-component's releases.
Commits
a0eea46
0.2.2980e0bf
Prevent overwriting previously decoded tokens3c8a373
0.2.176abc93
Switch to GitHub workflows746ca5d
Fix issue where decode throws - fixes #6486d7e2
Update license (#1)a650457
Tidelift tasks66e1c28
Meta tweaksDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump copy-props from 2.0.4 to 2.0.5
Bumps copy-props from 2.0.4 to 2.0.5.
Release notes
Sourced from copy-props's releases.
Changelog
Sourced from copy-props's changelog.
Commits
40b7974
2.0.52c738f5
Fix: Avoids prototype pollution (#7)4cac863
Merge: Transfer ownership to Gulp Team (#6)54a791d
Doc: Transfer ownership to Gulp Team196fc9e
Merge: Update dependencies and expand ci test versions (#5)e89907f
Test: Update npm to v4 when nodejs is v5 because of npm install error.e970322
Test: Run coveralls when nodejs >= 6 because of its supports063e534
Test: Add nodejs v11-v14 into ci test versions72270af
Doc: Update license yearsf60b928
Build: Update versions of dependenciesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump path-parse from 1.0.6 to 1.0.7
Bumps path-parse from 1.0.6 to 1.0.7.
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump browserslist from 4.5.5 to 4.16.6
Bumps browserslist from 4.5.5 to 4.16.6.
Changelog
Sourced from browserslist's changelog.
... (truncated)
Commits
6fe3614
Release 4.16.6 version33ebac9
Update dependencies2128170
Add support for npm-shrinkwrap files alongside package-lock (#595)7cc2aed
Release 4.16.5 version27e4afd
Update dependencies1013a18
Fix version RegExpb879a1a
Use Node.js 16 on CIbd1e9e0
Fix ReDoS (#593)209adf9
Release 4.16.4 version3e2ae3b
Fix typesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump hosted-git-info from 2.8.4 to 2.8.9
Bumps hosted-git-info from 2.8.4 to 2.8.9.
Changelog
Sourced from hosted-git-info's changelog.
Commits
8d4b369
chore(release): 2.8.929adfe5
fix: backport regex fix from #76afeaefd
chore(release): 2.8.85038b18
fix: #61 & #65 addressing issues w/ url.URL implmentation which regressed nod...7440afa
chore(release): 2.8.72d0bb66
fix: Do not attempt to use url.URL when unavailablef2cdfcf
fix: Do not pass scp-style URLs to the WhatWG url.URLe1b83df
chore(release): 2.8.6ff259a6
Ensure passwords in hosted Git URLs are correctly escaped624fd6f
chore(release): 2.8.5Maintainer changes
This version was pushed to npm by nlf, a new releaser for hosted-git-info since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.
Bump lodash from 4.17.15 to 4.17.21
Bumps lodash from 4.17.15 to 4.17.21.
Commits
f299b52
Bump to v4.17.21c4847eb
Improve performance oftoNumber
,trim
andtrimEnd
on large input strings3469357
Prevent command injection through_.template
'svariable
optionded9bc6
Bump to v4.17.20.63150ef
Documentation fixes.00f0f62
test.js: Remove trailing comma.846e434
Temporarily use a custom fork oflodash-cli
.5d046f3
Re-enable Travis tests on4.17
branch.aa816b3
Remove/npm-package
.d7fbc52
Bump to v4.17.19Maintainer changes
This version was pushed to npm by bnjmnt4n, a new releaser for lodash since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.