Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/bundle/Resources/public/scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
color: $ibexa-color-dark;
fill: $ibexa-color-dark;
padding: calculateRem(11px) calculateRem(12px);
pointer-events: auto;
Copy link
Contributor

@Gengar-i Gengar-i Aug 28, 2023

Choose a reason for hiding this comment

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

Property pointer-events: auto is default value.
Shouldn't we delete all of the pointer-events: none values instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Personally I would do such change in new PR/issue, as removing pointer-events: none from all buttons (what you propose if I understand correctly) touches all system, I'd rather not do such big change in this feature PR.
What other thinks? @dew326 @lucasOsti @tischsoic


&.ibexa-btn--selected {
background-color: $ibexa-color-info-200;
Expand All @@ -326,15 +327,30 @@
}

&:not(.ibexa-btn--selected) {
&:hover,
&:focus {
border-color: $ibexa-color-info;
box-shadow: 0 0 0 calculateRem(4px) rgba($ibexa-color-info, 0.2);
}
}

&:focus {
box-shadow: $ibexa-btn-focus-box-shadow-info;
}

&.disabled,
&[disabled],
&:disabled {
color: $ibexa-color-dark-300;
fill: $ibexa-color-dark-300;
border-color: transparent;
box-shadow: none;

&:hover {
.ibexa-icon {
fill: $ibexa-color-dark-300;
}
}
}
}

&--small {
Expand Down