-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(split-button): outlined split button right border duplication on hover #4763
fix(split-button): outlined split button right border duplication on hover #4763
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
I also think this might actually be a theme issue rather than a core CSS issue: https://github.com/primefaces/primevue/blob/master/public/themes/lara-light-blue/theme.css#L1777C46-L1781 The issue isn't present if you switch to Material theme, and it's compounded in other themes, like Mira. |
I know I think changing this code will solve the problem from primevue/components/lib/splitbutton/style/SplitButtonStyle.js Lines 10 to 17 in 14e8c29
to .p-splitbutton .p-splitbutton-defaultbutton,
.p-splitbutton.p-button-rounded > .p-splitbutton-defaultbutton.p-button,
.p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button,
.p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button-outlined.p-button:hover {
flex: 1 1 auto;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0 none;
} |
Yeah my PR is removing it from most of the core component CSS. The linked issue references an article that explains !important within CSS layers; it's takes even higher precedence and is harder to override
If that works, I think it's probably a better change if you want to update the PR. @melloware fyi looks like this same issue exists in PrimeReact as well. |
@betavs i would update your PR with your suggestion. |
db78610
to
0732a6c
Compare
I have updated the PR for your code review and testing. |
Fix #4758