Skip to content

Conversation

@GretaD
Copy link
Contributor

@GretaD GretaD commented Aug 14, 2024

☑️ Resolves

🖼️ Screenshots

🏚️ Before | 🏡 After
Screenshot from 2024-08-14 10-42-45
|
Screenshot from 2024-08-14 11-36-43

🚧 Tasks

  • Change the margin of both ncactioncheckbox and ncactionradio so they align. I decreased the margin because they dont fit with the other elements, like 'remove attendee' in the screenshot. I think that comes from making icons smaller.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

@GretaD GretaD added bug Something isn't working 3. to review Waiting for reviews labels Aug 14, 2024
@GretaD GretaD self-assigned this Aug 14, 2024
@ShGKme ShGKme changed the title fix:fix ncactioncheckbox and ncactionradio alignment fix(NcActions): NcActionCheckbox and NcActionRadio icon alignment Aug 14, 2024
@ShGKme ShGKme added this to the 8.16.1 milestone Aug 14, 2024
@susnux
Copy link
Contributor

susnux commented Aug 14, 2024

/backport to next

margin-block: 0 !important;
// 16px is the width of the checkbox including the border
margin-inline: calc((var(--default-clickable-area) - 16px) / 2) !important;
margin-inline: calc((var(--default-clickable-area) - 14px) / 2) !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably, we should either add CSS variable for it, or change layout here to not use this number to avoid magic numbers.

P.S. On all supported versions on server it is 14px, not 16px

https://github.com/nextcloud/server/blob/stable28/core/css/inputs.scss#L414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NcActionRadio does not align with NcActionButton, NcActionCheckbox, etc

4 participants