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

swap inline style with tailwind-class #529

Merged
merged 1 commit into from
Oct 26, 2021
Merged

swap inline style with tailwind-class #529

merged 1 commit into from
Oct 26, 2021

Conversation

Enaah
Copy link
Contributor

@Enaah Enaah commented Oct 25, 2021

I think it would be better if only Tailwind-classes are used (my CSP thinks so too).

You probably can change line 72 in resources/views/vendor/livewire-tables/tailwind/includes/table.blade.php :

<svg xmlns="http://www.w3.org/2000/svg" class="inline" style="width:1em;height:1em;" fill="none" viewBox="0 0 24 24" stroke="currentColor">

with

<svg xmlns="http://www.w3.org/2000/svg" class="inline w-1 h-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">

bu since i don't use reordering, i can not test it. ✌🏼

Changes

  • changes a inline style cursor:pointer with the tailwind-class cursor-pointer applied conditionally (if $url is set) via the class-helper of the component.

- changes a inline style `cursor:pointer` with the tailwind-class `cursor-pointer` applied conditionally (if `$url` is set) via the `class`-helper of the component.
@rappasoft rappasoft added the Awaiting Next Release Currently merged into development awaiting a release to master label Oct 25, 2021
@rappasoft rappasoft mentioned this pull request Oct 26, 2021
@rappasoft rappasoft merged commit 906b924 into rappasoft:master Oct 26, 2021
@Enaah Enaah deleted the swap-inline-style-with-tailwind-class branch October 26, 2021 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Next Release Currently merged into development awaiting a release to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants