Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: form patterns bugs found via tup UI #91

Draft
wants to merge 110 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
f695ad1
feat(base): (root), cms, portal, header, updates
wesleyboar Nov 21, 2022
1997b8a
feat(fonts): add regular italic, add black
wesleyboar Nov 21, 2022
17e459c
Merge branch 'main' into task/base-cms-portal-header
wesleyboar Nov 21, 2022
d02c0d0
fix(base): import paths, bad imports, build
wesleyboar Nov 21, 2022
8bb41c3
fix: rename base.*.css to core-styles.*.css
wesleyboar Nov 22, 2022
f2ff5a4
fix(dist): build core-styles.*.css
wesleyboar Nov 22, 2022
0ee442a
fix(core-styles): header trump cms when layered
wesleyboar Nov 22, 2022
dc108df
fix(core-styles): build core-styles.header.css
wesleyboar Nov 22, 2022
44dee14
Merge branch 'main' into task/base-cms-portal-header
wesleyboar Nov 22, 2022
17a5c25
fix(core-styles): s-portal-nav trump cms on layers
wesleyboar Nov 22, 2022
015bca7
fix(core-styles): build s-portal-nav trump cms …
wesleyboar Nov 22, 2022
3a0cce0
fix(core-styles): avoid duplicate custom prop defs
wesleyboar Nov 22, 2022
566ee9d
fix(core-styles): build avoid dup… custom prop …
wesleyboar Nov 22, 2022
abc5e9f
fix(core-styles): for real, build avoid [dup vars]
wesleyboar Nov 22, 2022
29c5f63
Merge branch 'main' into task/base-cms-portal-header
wesleyboar Nov 22, 2022
1a8df00
Merge branch 'main' into task/base-cms-portal-header
wesleyboar Nov 23, 2022
1cbc279
wip(form): elements, components, relevant changes
wesleyboar Nov 23, 2022
c56ad2d
Merge branch 'main' into task/base-cms-portal-header
wesleyboar Nov 23, 2022
849e9c9
fix: scope header styles fixes appropriately
wesleyboar Nov 23, 2022
97807e7
fix(dist): build scope header styles fixes …
wesleyboar Nov 23, 2022
c471d84
fix(elements): field label default weight
wesleyboar Nov 23, 2022
c607adc
wip(form): elements, components, relevant changes
wesleyboar Nov 23, 2022
b34166d
fix(elements): field label default weight
wesleyboar Nov 23, 2022
3097b77
fix(elements): field label in list revert weight
wesleyboar Nov 23, 2022
01932d3
Merge branch 'task/base-cms-portal-header' into dev
wesleyboar Nov 23, 2022
89d77a6
docs(form): tweaks
wesleyboar Nov 23, 2022
b336a48
fix(components): django-cms-forms pattern (cms)
wesleyboar Nov 23, 2022
243aceb
Merge branch 'task/form-patterns' into dev
wesleyboar Nov 23, 2022
ca1b35d
fix!: avoid redundant custom property definitions
wesleyboar Nov 23, 2022
ca3f568
test(demo): build off base, not settings
wesleyboar Nov 23, 2022
436995b
fix(demo): load core-styles.base via config
wesleyboar Nov 23, 2022
c60d40c
Merge branch 'task/base-cms-portal-header' into dev
wesleyboar Nov 23, 2022
5e2fd8f
fix(demo): core-styles.base from absolute path
wesleyboar Nov 27, 2022
6e52133
Merge branch 'task/base-cms-portal-header' into dev
wesleyboar Nov 27, 2022
bfe93de
docs(demo): fix inaccurate comment
wesleyboar Nov 27, 2022
db8fec4
Merge branch 'task/base-cms-portal-header' into dev
wesleyboar Nov 27, 2022
e653718
fix(fonts)!: support font load on demo
wesleyboar Nov 27, 2022
d51af9e
Merge branch 'bugfix/font-paths-for-demo-and-thus-client' into dev
wesleyboar Nov 28, 2022
9e3d54f
Merge branch 'main' into dev
wesleyboar Nov 28, 2022
e8a600d
chore(dist): build (since merge of main with #74
wesleyboar Nov 28, 2022
0b3e4e0
wip(form): c-form & html-elements
wesleyboar Nov 28, 2022
8eb54d2
Merge branch 'main' into task/base-cms-portal-header
wesleyboar Nov 28, 2022
c2f4fd2
chore(dist): build (since merge of main with #74
wesleyboar Nov 28, 2022
e551b95
fix: load stylesheets within css layers
wesleyboar Nov 28, 2022
f430104
Merge branch 'task/base-cms-portal-header' into dev
wesleyboar Nov 28, 2022
f156361
fix(c-form): markup cleanup
wesleyboar Nov 28, 2022
d664919
fix(c-form): consistent field heights
wesleyboar Nov 28, 2022
067540c
fix(components): consistent * and button styles
wesleyboar Nov 28, 2022
9f7f08e
chore(components): build previous commit
wesleyboar Nov 28, 2022
4a483ef
feat(demo): pattern script assets must be modules
wesleyboar Nov 28, 2022
7243312
feat(components): forms, toggle required & errors
wesleyboar Nov 28, 2022
956f927
fix(components): forms, select errors by query
wesleyboar Nov 28, 2022
49a26a8
feat: c-message scopes & complete a11y colors
wesleyboar Nov 29, 2022
a5142a0
feat(forms): style form & field errors
wesleyboar Nov 29, 2022
273c0f5
feat(demo)!: refactor asset load
wesleyboar Nov 29, 2022
70049dd
Merge branch 'main' into dev
wesleyboar Nov 29, 2022
8a10619
Merge branch 'dev' into dev--task/form-patterns
wesleyboar Nov 29, 2022
d1f9a89
Merge branch 'dev--task/form-patterns' into dev--task/form-patterns--…
wesleyboar Nov 29, 2022
843f548
fix(s-portal-nav): undo s-portal-nav margin bottom
wesleyboar Nov 29, 2022
6f3e0c6
feat(core-styles): perma-comment, each stylesheet
wesleyboar Nov 29, 2022
2c8c2e8
fix(fonts): path consistent w/ client post-process
wesleyboar Nov 29, 2022
b24663a
feat(c-form): add to …base.css
wesleyboar Nov 30, 2022
48d2c36
Merge branch 'dev--task/form-patterns' into dev--task/form-patterns--…
wesleyboar Nov 30, 2022
71e43a5
fix: restore and re-use core-styles.settnings.css
wesleyboar Nov 30, 2022
1a80160
wip(forms): fixes for tup-ui use cases
wesleyboar Nov 30, 2022
c99c880
fix(core-styles): internal layers
wesleyboar Nov 30, 2022
9256831
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Nov 30, 2022
d11049f
chore(dist): re-build after merge
wesleyboar Nov 30, 2022
fb7e370
fix(core-styles): internal layers
wesleyboar Nov 30, 2022
c04bebe
fix(core-styles): internal layers
wesleyboar Nov 30, 2022
18d0b85
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Nov 30, 2022
1792d6d
fix(core-styles): italicize small help text
wesleyboar Dec 1, 2022
17e35e3
docs(forms): hint, fix file input button size diff
wesleyboar Dec 1, 2022
7f7545d
Merge branch 'main' into dev
wesleyboar Dec 1, 2022
14cb14e
Merge branch 'dev' into dev--task/form-patterns
wesleyboar Dec 1, 2022
1caf697
Merge branch 'dev--task/form-patterns' into dev--task/form-patterns--…
wesleyboar Dec 1, 2022
c0c6379
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Dec 1, 2022
520014f
Merge branch 'main' into dev
wesleyboar Dec 2, 2022
8d1941c
Merge branch 'main' into dev
wesleyboar Dec 2, 2022
96a159c
Merge branch 'dev' into dev--task/form-patterns
wesleyboar Dec 2, 2022
c77c1de
Merge branch 'dev--task/form-patterns' into dev--task/form-patterns--…
wesleyboar Dec 2, 2022
63002fe
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Dec 2, 2022
4e2960f
chore(dist): build after merge
wesleyboar Dec 2, 2022
87483dc
Merge branch 'main' into dev--task/form-patterns
wesleyboar Dec 2, 2022
3786359
Merge branch 'dev--task/form-patterns' into dev--task/form-patterns--…
wesleyboar Dec 2, 2022
e6ae817
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Dec 2, 2022
de99056
Merge branch 'main' into dev--task/form-patterns--task/base-cms-porta…
wesleyboar Dec 2, 2022
e7807d1
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Dec 2, 2022
5a48cb5
Merge branch 'main' into dev--task/form-patterns--task/base-cms-porta…
wesleyboar Dec 2, 2022
4e74bb7
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Dec 2, 2022
e1e5be6
docs(demo): index page update
wesleyboar Dec 2, 2022
996c069
docs(demo): change title (add "Library")
wesleyboar Dec 2, 2022
5e9c0a2
docs(demo): add link to itcss
wesleyboar Dec 2, 2022
cfd6ad3
fix(c-button): prevent conflict with <a> styles
wesleyboar Dec 2, 2022
84b6aeb
chore(dist): remove erroneous build file
wesleyboar Dec 2, 2022
8b164e4
fix(c-button): consitent <button> and <a> width
wesleyboar Dec 2, 2022
dde34f1
fix(o-table-wrap): missing message classes
wesleyboar Dec 2, 2022
b2ff0f5
chore: remove erroneous ")" from comments
wesleyboar Dec 2, 2022
1684413
docs(u-mailto-replace): simplify a description
wesleyboar Dec 2, 2022
b42422b
docs(o-table-wrap): prototype → wip
wesleyboar Dec 2, 2022
0870dcd
docs(bootstrap--modal): wip → prototype
wesleyboar Dec 2, 2022
33fa55e
docs(demo): warn bootstrap modal no scroll in cms
wesleyboar Dec 2, 2022
25e15ad
feat: postcss-preset-env from ^7.8.2 to ^7.8.3
wesleyboar Dec 2, 2022
996e6f3
chore: package-lock.json update for prev commit
wesleyboar Dec 2, 2022
4856f85
fix(postcss): custom selectors + layers, play nice
wesleyboar Dec 2, 2022
a772d36
fix(postcss): remove postcss-cascade-layers
wesleyboar Dec 5, 2022
07c99a0
Merge branch 'main' into dev--task/form-patterns--task/base-cms-porta…
wesleyboar Dec 5, 2022
768f07f
Merge branch 'dev--task/form-patterns--task/base-cms-portal-header' i…
wesleyboar Dec 5, 2022
e5f2dad
Merge branch 'main' into dev--task/form-patterns--task/base-cms-porta…
wesleyboar Dec 6, 2022
dea152f
Merge branch 'main' into bugfix/form-patterns-bugs-found-via-tup-ui
wesleyboar Dec 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/components/c-form.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components/django-cms-forms.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-styles.base.css

Large diffs are not rendered by default.

23 changes: 19 additions & 4 deletions src/lib/_imports/components/c-form.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/* To prevent help text font-style from affecting any tags */
/* FAQ: Help text can contain inline elements like <samp> */
/* FAQ: Help text can be (ab)used to add headings between form fields */
.c-form__help > :not(details, a, samp) {
.c-form__help > :not(details, a, samp, small) {
font-style: initial;
}

Expand Down Expand Up @@ -116,22 +116,29 @@

/* Errors */

.c-form__field ul.c-form__errors {
margin-top: 1rem; /* mimic ul margin-bottom */
margin-bottom: 0; /* overwrite ul margin-bottom */
.c-form > .c-form__error,
.c-form > .c-form__errors {
margin-block: 20px;
}
.c-form__field .c-form__error,
.c-form__field .c-form__errors {
margin-top: 20px;
margin-bottom: 0; /* overrides html-elements.css ul margin-bottom */
}

ul.c-form__errors {
list-style: none;
padding-inline: 0;
}

.c-form > .c-form__error,
.c-form > .c-form__errors {
@extend .c-message;
@extend .c-message--type-error;
@extend .c-message--scope-section;
@extend .c-message--scope-section.c-message--type-error;
}
.c-form__field .c-form__error,
.c-form__field .c-form__errors li {
@extend .c-message;
@extend .c-message--type-error;
Expand Down Expand Up @@ -174,3 +181,11 @@ ul.c-form__errors {
.c-form__button[type="reset"] {
@extend .c-button--tertiary;
}

/* TODO: Test whether this fixes size difference between demo and cms */
/*
::file-selector-button {
@extend .c-button;
@extend .c-button--secondary;
}
*/
24 changes: 15 additions & 9 deletions src/lib/_imports/components/django-cms-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/* To prevent help text font-style from affecting any tags */
/* FAQ: Help text can contain inline elements like <samp> */
/* FAQ: Help text can be (ab)used to add headings between form fields */
.help-text > :not(details, a, samp) {
.help-text > :not(details, a, samp, small) {
font-style: initial;
}

Expand Down Expand Up @@ -115,21 +115,19 @@ ul.checkboxselectmultiple li:last-child label {

/* Errors */

.field-errors ul {
margin-top: 1rem; /* mimic ul margin-bottom */
}
.form-errors ul,
.field-errors ul {
margin-bottom: 0; /* overwrite ul margin-bottom */
}
.form-errors {
margin-bottom: 1rem; /* mimic ul margin-bottom */
margin-block: 20px;
}
.field-errors {
margin-top: 20px;
margin-bottom: 0; /* overrides html-elements.css ul margin-bottom */
}

.form-errors ul,
.field-errors ul {
list-style: none;
padding-inline: 0;
margin-block: 0;
}

.form-errors {
Expand Down Expand Up @@ -185,3 +183,11 @@ ul.checkboxselectmultiple {
.form-button[type="reset"] {
@extend .c-button--tertiary;
}

/* TODO: Test whether this fixes size difference between demo and cms */
/*
::file-selector-button {
@extend .c-button;
@extend .c-button--secondary;
}
*/