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 #5096 - Component Styles: Remove use of !important now that @layer is used #5097

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

FlipWarthog
Copy link
Contributor

Fix #5096 - Component Styles: Remove use of !important now that @layer is used

@melloware @mertsincan, I did a side-by-side comparison running the showcase locally and looking at primereact.org and did not see any appreciable differences. As far as I can tell, now that @layer primereact is in place, !important is no longer needed.

@vercel
Copy link

vercel bot commented Oct 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Nov 10, 2023 0:05am

@melloware melloware added the Type: Bug Issue contains a defect related to a specific component. label Oct 15, 2023
@melloware
Copy link
Member

@bweis would like your thoughts on this one too.

@FlipWarthog FlipWarthog marked this pull request as ready for review November 7, 2023 19:39
@nitrogenous
Copy link
Contributor

Sidebar's full screen option is not working properly
image

@melloware
Copy link
Member

@nitrogenous similar to Dialog I just added the important back into Sidebar Full if you want to try again. @FlipWarthog and I work together.

@nitrogenous
Copy link
Contributor

@melloware @FlipWarthog Thank you so much y'all! I have just fixed this solution in another PR. I think we can continue to proceed here.

Fullscreen issue PR
#5272

@nitrogenous similar to Dialog I just added the important back into Sidebar Full if you want to try again. @FlipWarthog and I work together.

@melloware
Copy link
Member

melloware commented Nov 10, 2023

@nitrogenous ok so in sidebar full is the !important still needed on the left and top I see your removed from the width and height ?

@nitrogenous
Copy link
Contributor

@nitrogenous ok so in sidebar full is the !important still needed on the left and top I see your removed from the width and height ?

I don't think we need them anymore there was a logical problem while assigning the positioning classes but now it's fixed. It should work properly but let me double check

@melloware melloware merged commit 541d9cf into primefaces:master Nov 10, 2023
4 checks passed
@gucal
Copy link
Contributor

gucal commented Nov 10, 2023

Hello there,

Thank you for your effort.

Components with resizable attributes such as data tables and tree tables should remain !important.
Because if the user gives an initial value for Column, e.g: <Column style={{{{ width: 200 }}/>, they may have problems resizing it later. Other than that, there does not seem to be an error.

I'll check and fix it.

Thank you for your contribution.

@gucal
Copy link
Contributor

gucal commented Nov 10, 2023

Hello there,

Thank you for your effort.

Components with resizable attributes such as data tables and tree tables should remain !important. Because if the user gives an initial value for Column, e.g: <Column style={{{{ width: 200 }}/>, they may have problems resizing it later. Other than that, there does not seem to be an error.

I'll check and fix it.

Thank you for your contribution.

It was reverted with this commit. 1ec2e3c.

Thank you!

@melloware
Copy link
Member

Thanks @gucal !

@FlipWarthog
Copy link
Contributor Author

@gucal @melloware I'll review these changes and sync them up on my PrimeVue PR for the same

@FlipWarthog FlipWarthog deleted the no-important branch November 10, 2023 19:07
@FlipWarthog
Copy link
Contributor Author

PrimeVue PR is update to match this: primefaces/primevue#4638

@mertsincan
Copy link
Member

@FlipWarthog thanks a lot for your PR! I found an issue, virtualscroller loading is not working on DataTable. You can check it our showcase.
My fix; primefaces/primevue#4993

Best Regards,

@melloware
Copy link
Member

@mertsincan one more fix is needed we found in PrimeReact dialogs the left and top need to be important.

top: 0px !important;
left: 0px  !important;

See: #5635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component Styles: Remove use of !important now that @layer is used
5 participants