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

BREAKING: Removing stylistic data-attributes #4452

Merged
merged 8 commits into from
Sep 22, 2023

Conversation

dbanksdesign
Copy link
Contributor

@dbanksdesign dbanksdesign commented Sep 16, 2023

Description of changes

These were a tech debt from a while ago cleaning it up.

Issue #, if available

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • Relevant documentation is changed or added (and PR referenced)
  • yarn test passes and tests are updated/added
  • No side effects or sideEffects field updated

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dbanksdesign dbanksdesign requested a review from a team as a code owner September 16, 2023 04:58
@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2023

🦋 Changeset detected

Latest commit: 401b240

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@aws-amplify/ui-react Major
@aws-amplify/ui-react-liveness Patch
@aws-amplify/ui-react-notifications Patch
@aws-amplify/ui-react-storage Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dbanksdesign dbanksdesign changed the base branch from main to next-release/main September 16, 2023 04:58
@@ -43,7 +41,6 @@ exports[`ChangePassword renders as expected 1`] = `
aria-checked="false"
aria-label="Show password"
class="amplify-button amplify-field-group__control amplify-field__show-password"
data-fullwidth="false"
Copy link
Contributor

@reesscot reesscot Sep 18, 2023

Choose a reason for hiding this comment

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

This isn't used either? I don't see a corresponding classname above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, doing a search in the repo for data-fullwidth only comes up with snapshot tests and vue/angular code. No CSS references it.

reesscot
reesscot previously approved these changes Sep 18, 2023
Copy link
Contributor

@reesscot reesscot left a comment

Choose a reason for hiding this comment

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

Approved, assuming my comment above is not relevant

Copy link
Member

@calebpollman calebpollman left a comment

Choose a reason for hiding this comment

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

LGTM! Left a couple clarifying questions about data attributes that are remaining, and saw that some unit test names reference the data attributes that no longer exist (would be good to audit the related unit test names in general, didn't comment on all of them)

calebpollman
calebpollman previously approved these changes Sep 21, 2023
Copy link
Member

@calebpollman calebpollman left a comment

Choose a reason for hiding this comment

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

🚢

calebpollman
calebpollman previously approved these changes Sep 21, 2023
Copy link
Member

@calebpollman calebpollman left a comment

Choose a reason for hiding this comment

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

PR feedback handling 10 out of 10, would review again

@dbanksdesign dbanksdesign temporarily deployed to ci September 22, 2023 17:01 — with GitHub Actions Inactive
@dbanksdesign dbanksdesign temporarily deployed to ci September 22, 2023 17:01 — with GitHub Actions Inactive
@dbanksdesign dbanksdesign temporarily deployed to ci September 22, 2023 17:01 — with GitHub Actions Inactive
@dbanksdesign dbanksdesign temporarily deployed to ci September 22, 2023 17:01 — with GitHub Actions Inactive
Copy link
Contributor

@reesscot reesscot left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up!

@dbanksdesign dbanksdesign merged commit de87be6 into next-release/main Sep 22, 2023
@dbanksdesign dbanksdesign deleted the next-release/remove-data-attrs branch September 22, 2023 17:26
@github-actions github-actions bot mentioned this pull request Nov 14, 2023
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