Skip to content

Some final updates before v4 beta1#8210

Merged
javierjulio merged 8 commits into
masterfrom
css-updates
Jan 6, 2024
Merged

Some final updates before v4 beta1#8210
javierjulio merged 8 commits into
masterfrom
css-updates

Conversation

@javierjulio

Copy link
Copy Markdown
Member

These are some final updates before our first beta release of v4. This fixes the default anchor style by just setting it as a base style and defining no-underline and default text colors where it was missing. I think this will be best to keep a default link style which I think will be expected and not set it by default with a class which had some conflicts with dark mode styles. This keeps the specificity low.

We should have at least a model with validation for form testing without having to make changes. For now we'll update the category model since it's the easiest. Only one case where it was creating the model without any data.
Use an explicit named class name and show adding a data attribute as an example here.
This rule starts to get problematic with links elsewhere that are set to inherit text color in default state (non-dark mode). I noticed this with the table column links. We've already been setting no-underline on any links elsewhere, including table column. This is easier to override per element and will at least give links a default style similar to the previous version which I think others will still want to have in place.
When submitting the form and its re-rendered due to validation errors, then the page title ending up being a generic "Create" vs what it used to be like "New Post". Reviewing the original implementation in v3, the action is normalized regardless of the action so we have to account for create/update here in the when statement to preverse the same behavior.
Tests for page registration which was reusing the index_table class directly to work with an existing expectation but its using table_for which we have our dedicated class name for since its a table component vs just a table.
@javierjulio javierjulio self-assigned this Jan 6, 2024
@codecov

codecov Bot commented Jan 6, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b53bdc6) 99.10% compared to head (9b27cab) 99.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8210   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files         140      140           
  Lines        4013     4017    +4     
=======================================
+ Hits         3977     3981    +4     
  Misses         36       36           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@javierjulio javierjulio merged commit b4aef13 into master Jan 6, 2024
@javierjulio javierjulio deleted the css-updates branch January 6, 2024 02:57
javierjulio added a commit that referenced this pull request Jan 16, 2024
If the form is invalid, the form page presenter wasn't being applied. Same fix as we did for the page title on form submission in #8210 specifically this commit: 783992e
javierjulio added a commit that referenced this pull request Jan 16, 2024
* Apply form page presenter on submit when invalid

If the form is invalid, the form page presenter wasn't being applied. Same fix as we did for the page title on form submission in #8210 specifically this commit: 783992e

* Update form errors styles

Now that these are visible on submission when form is invalid, we can update them. If the list only contains a single item them the bottom margin makes it look off. We now use the space-y-* utility to dynamically control the spacing between child elements from the parent. Also adjust the bottom margin on the list to be larger and smaller rounded borders to match.
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.

1 participant