Skip to content

IONOS(theming): add special rule for dashboard buttons#209

Merged
bromiesTM merged 1 commit intorc/nsw-3from
kh/dev/fix-move-dialog-button
Feb 3, 2026
Merged

IONOS(theming): add special rule for dashboard buttons#209
bromiesTM merged 1 commit intorc/nsw-3from
kh/dev/fix-move-dialog-button

Conversation

@bromiesTM
Copy link

No description provided.

@bromiesTM bromiesTM requested a review from Copilot January 28, 2026 10:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds specific CSS rules for dashboard buttons to ensure proper styling with !important flags when buttons appear within the dashboard context.

Changes:

  • Adds dashboard-specific hover states for secondary buttons
  • Adds dashboard-specific background color rules for primary buttons
  • Maintains existing button styling rules while adding more specific selectors

Comment on lines 37 to 45
&:hover:not(:disabled):not(.button-vue--disabled) {
background-color: var(--ion-button-secondary-background-hover)!important;
background-color: var(--ion-button-secondary-background-hover);
border-color: var(--ion-button-secondary-background-hover);
}

#app-dashboard &:hover:not(:disabled):not(.button-vue--disabled) {
background-color: var(--ion-button-secondary-background-hover) !important;
border-color: var(--ion-button-secondary-background-hover);
color: var(--ion-button-secondary-text-hover);
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The dashboard-specific rule at line 42 duplicates the hover state definition and adds !important flags. This creates redundancy where the same properties are defined twice with slightly different specificity. Consider consolidating these rules or documenting why the dashboard context requires !important while the general case does not.

Copilot uses AI. Check for mistakes.
Comment on lines 67 to +83
&.button-vue--vue-primary:not(.unified-search-modal__header *), &.button-vue--vue-error:not(.unified-search-modal__header *),
/* ensure primary type styling of "new" button */
&.action-item__menutoggle:not(.unified-search-modal__header *), &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default)!important;
background-color: var(--ion-button-primary-background-default);
}

#app-dashboard &.action-item__menutoggle:not(.unified-search-modal__header *), #app-dashboard &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default) !important;
}

&.button-vue--vue-primary:not(.unified-search-modal__header *), &.button-vue--vue-error:not(.unified-search-modal__header *),
&.action-item__menutoggle:not(.unified-search-modal__header *), &.files-list__header-upload-button--disabled {
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Lines 82-84 repeat the same selector list as lines 72-74, creating rule fragmentation. The background-color and border properties for the same selectors are now defined in separate rule blocks, making the code harder to maintain. Consider grouping related properties within the same rule block unless there is a specific cascade requirement that prevents this.

Suggested change
&.button-vue--vue-primary:not(.unified-search-modal__header *), &.button-vue--vue-error:not(.unified-search-modal__header *),
/* ensure primary type styling of "new" button */
&.action-item__menutoggle:not(.unified-search-modal__header *), &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default)!important;
background-color: var(--ion-button-primary-background-default);
}
#app-dashboard &.action-item__menutoggle:not(.unified-search-modal__header *), #app-dashboard &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default) !important;
}
&.button-vue--vue-primary:not(.unified-search-modal__header *), &.button-vue--vue-error:not(.unified-search-modal__header *),
&.action-item__menutoggle:not(.unified-search-modal__header *), &.files-list__header-upload-button--disabled {
#app-dashboard &.action-item__menutoggle:not(.unified-search-modal__header *), #app-dashboard &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default) !important;
}
&.button-vue--vue-primary:not(.unified-search-modal__header *), &.button-vue--vue-error:not(.unified-search-modal__header *),
/* ensure primary type styling of "new" button */
&.action-item__menutoggle:not(.unified-search-modal__header *), &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default);

Copilot uses AI. Check for mistakes.
@bromiesTM bromiesTM added this to the ncw-3 milestone Jan 29, 2026
/* ensure primary type styling of "new" button */
&.action-item__menutoggle:not(.unified-search-modal__header *), &.files-list__header-upload-button--disabled {
background-color: var(--ion-button-primary-background-default)!important;
background-color: var(--ion-button-primary-background-default);

Choose a reason for hiding this comment

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

Suggested change
background-color: var(--ion-button-primary-background-default);
background-color: var(--ion-button-primary-background-default);

I think only this is needed for the ticket. And the rest is probably an add-on.

Copy link
Author

Choose a reason for hiding this comment

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

The #app-dashboard selector is specificly for the dashboard because the buttons there already have an !important by defautl.
But having the important causes problems eg for the copy/move dialog buttons. So i moved the part for the dashboard to another selector very similar selector WITH !important. So its done to make sure the dashboard buttons dont break again by fixing this ticket

@bromiesTM bromiesTM changed the base branch from ionos-dev to rc/nsw-3 February 3, 2026 08:57
to work again nextclouds !important rule without destroying other
buttons

Ref: cdb0f4f
Signed-off-by: Kai Henseler <kai.henseler@strato.de>
@bromiesTM bromiesTM force-pushed the kh/dev/fix-move-dialog-button branch from 3c1c31a to ac7c618 Compare February 3, 2026 08:58
@bromiesTM bromiesTM merged commit deb5b2f into rc/nsw-3 Feb 3, 2026
4 of 11 checks passed
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.

3 participants