Skip to content

Commit

Permalink
hotfix: django-cms-forms were unstyled in demo (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Nov 21, 2023
1 parent 793c441 commit 0ba9a5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/components/django-cms-forms.css

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/lib/_imports/components/django-cms-forms.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* FAQ: c-form.css styles s-form and django-cms-forms */
@import url("./c-form.css");
@import url("./c-form--cms.css");

@import url("./django-cms-forms.hacks.css");
@import url("./django-cms-forms.selectors.css");

/* No other styles necessary, because c-form supports s-form selectors */
/* Few other styles necessary, because c-form supports s-form selectors */
/* SEE ../components/c-form.css */
/* SEE: ../tools/selectors.form.css */

/* To ensure */
/* To re-order plugin elements to match order of such elements in `c-form` */
:--cms-form__field > :--cms-form__errors { order: 1; }
:--cms-form__field > :--cms-form__help { order: 2; }
3 changes: 3 additions & 0 deletions src/lib/_imports/components/django-cms-forms/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
label: Django CMS Forms
status: ready
context:
📝 supportStyles: only needed until core-styles.cms.css loads them
supportStyles:
- ../../assets/components/django-cms-forms.css
shouldLoadCMS: true
📝 shouldLoadCMS: because this is demo but this is CMS pattern
markup:
Expand Down

0 comments on commit 0ba9a5a

Please sign in to comment.