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

Tailwind #446

Closed
wants to merge 6 commits into from
Closed

Tailwind #446

wants to merge 6 commits into from

Conversation

iruzevic
Copy link
Member

@iruzevic iruzevic commented Sep 2, 2024

Added

  • New way of handling Tailwind classes for forms.

Fixed

  • Rating field is now disabled if the parameter is set to true.
  • Input number is now able to use standard tab navigation.
  • Rating field now supports tab navigation.

Removed

  • Any unnecessary server side renders for the forms.

@iruzevic iruzevic requested a review from a team September 2, 2024 15:56
@iruzevic iruzevic self-assigned this Sep 2, 2024
Copy link
Contributor

@piqusy piqusy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👏🏼

Left a few suggestions re translations

className='es-rounded-3! es-mx-auto! es-font-weight-400 es-color-cool-gray-500! es-nested-color-current!'
isColumnLayout={true}
>
{sprintf(__('Form "%s" with type "%s" will be displayed here.', 'eightshift-forms'), formsFormPostIdRaw?.label, formsFormPostIdRaw?.metadata)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translator info missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is JS file it is not req here

label={<span className='es-font-weight-400'>{__('Eightshift Forms', 'eightshift-forms')}</span>}
className='es-rounded-3! es-mt-5! es-mx-auto! es-font-weight-400 es-color-cool-gray-500! es-nested-color-current!'
>
{sprintf(__('Form "%s" with type "%s" will be displayed here.', 'eightshift-forms'), item?.form?.label, item?.form?.metadata)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translator info missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is JS file it is not req here

@iruzevic iruzevic requested a review from piqusy September 3, 2024 06:27
src/Blocks/components/checkbox/checkbox.php Show resolved Hide resolved
Helpers::selector($selectorClass, $selectorClass, $componentClass),
Helpers::selector($additionalErrorClass, $additionalErrorClass),
Helpers::selector($additionalClass, $additionalClass),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Helpers::selector($additionalClass, $additionalClass),
$additionalClass,

Please do a find-replace for this in the whole plugin. The classnames handle will handle empty/null values.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do this in the refactoring of the components with updates on the libs, I will skip this at this point.

key={index}
icon={icons.form}
label={<span className='es-font-weight-400'>{__('Eightshift Forms', 'eightshift-forms')}</span>}
className='es-rounded-3! es-mt-5! es-mx-auto! es-font-weight-400 es-color-cool-gray-500! es-nested-color-current!'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be replaced with TW at some point, but let's leave them as-is for now 😄

@iruzevic iruzevic closed this Sep 3, 2024
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.

5 participants