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

UHF-9050 button refactor #785

Closed
wants to merge 29 commits into from
Closed

Conversation

Arkkimaagi
Copy link
Contributor

@Arkkimaagi Arkkimaagi commented Sep 28, 2023

UHF-9050

What was done

  • This thing was fixed

How to install

  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the HDBT theme
    • composer require drupal/hdbt:dev-UHF-9050_button_refactor
  • Run make drush-cr

How to test

  • Check that this feature works
  • Check that code follows our standards

Designers review

  • This PR does not need designers review
  • This PR has been visually reviewed by a designer (Name of the designer)

Other PRs

  • Link to other PR

@Arkkimaagi Arkkimaagi changed the base branch from main to UHF-8489 September 28, 2023 10:23
@teroelonen teroelonen marked this pull request as ready for review October 20, 2023 11:10
Copy link
Contributor

@teroelonen teroelonen left a comment

Choose a reason for hiding this comment

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

Amazing work with this! Really good stuff! Just one question and small notice there on the button.scss file :)

padding: var(--spacing-2-xs) var(--spacing-2-xs);
}

/* FULL WIDTH */
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to one-line-comment style.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, right, these must have slipt past when changing HDS CSS comments to SCSS comments on our side

input[type='button'].hds-button--small,
input[type='reset'].hds-button--small,
input[type='submit'].hds-button--small {
padding: var(--spacing-2-xs) var(--spacing-m);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is overriding styles set on line 191. Is this intentional?

Copy link
Contributor Author

@Arkkimaagi Arkkimaagi Oct 23, 2023

Choose a reason for hiding this comment

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

This part of our code tries to closely follow HDS codes. This part is in https://github.com/City-of-Helsinki/helsinki-design-system/blob/dea8dde508c1f536eea84175be9c1a62d4f83878/packages/core/src/components/button/button.css#L232C12-L232C12 and has a same problem. So kind of intentional on our end, but do not know how intentional is it is on their end.

@khalima khalima changed the base branch from UHF-8489 to ckeditor5 October 23, 2023 14:03
@khalima
Copy link
Contributor

khalima commented Oct 24, 2023

Closing this PR as the same feature and changes was merged in #810

@khalima khalima closed this Oct 24, 2023
@khalima khalima deleted the UHF-9050_button_refactor branch October 24, 2023 08:12
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