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

fix: [M3-8422] - Linode IPv6 rDNS typo #10948

Merged

Conversation

bnussman-akamai
Copy link
Member

Description 📝

  • Fixes RDNS typo on a IPv6 Range row on the Linode Details page 🌎
  • Uses a <LinkButton /> instead of an un-styled browser button 🔘

Preview 📷

Before After
Screenshot 2024-09-16 at 3 48 59 PM Screenshot 2024-09-16 at 3 47 53 PM

How to test 🧪

  • Setting up RDNS on an IPv6 range is quite a process, I recommend following this guide 📘 on setting it up if you want to go through the trouble. The changes are minimal enough that you probably don't need to go through this process.

As an Author I have considered 🤔

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@bnussman-akamai bnussman-akamai added the Bug Fixes for regressions or bugs label Sep 16, 2024
@bnussman-akamai bnussman-akamai self-assigned this Sep 16, 2024
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner September 16, 2024 19:52
@bnussman-akamai bnussman-akamai requested review from hana-akamai and carrillo-erik and removed request for a team September 16, 2024 19:52
@@ -46,6 +46,7 @@ export const LinkButton = (props: Props) => {
disabled={isDisabled}
onClick={onClick}
style={style}
tabIndex={0}
Copy link
Member Author

Choose a reason for hiding this comment

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

@carrillo-erik @abailly-akamai

This makes LinkButtons focusable via the keyboard. I think this is what we want, but please correct me if I'm wrong

Copy link
Contributor

Choose a reason for hiding this comment

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

Are buttons not already focusable? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I had the same question 😵‍💫

Copy link
Contributor

Choose a reason for hiding this comment

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

@bnussman-akamai I seem to recall the conversation around this topic being more concerned with links styled as buttons. At the time we were looking at the TopMenu icons, specifically the Help & Support vs Notifications.

In this context, I agree with the decision you made to use a LinkButton component. Although, I also wonder if there's some other underlying issue as to why the previous link element was not focusable.

@@ -169,21 +170,12 @@ const RangeRDNSCell = (props: {
}

return (
<button
<LinkButton
Copy link
Member Author

Choose a reason for hiding this comment

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

I know we generally want to discourage LinkButtons, but I think with the current state of things, this makes the most sense here.

My intention here is not to promote LinkButtons, but to use one here so that we can identify it later on and replace it with the correct long term solution.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to me. According to the tech docs, it used to look like a "link button" anyway 🔗

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point!

color: theme.palette.primary.main,
}}
>
{ipsWithRDNS.length} Addresses2
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the typo (Addresses2 ➡️ Addresses)

@bnussman-akamai bnussman-akamai changed the title fix: [M3-8422] - IPv6 RDNS Typo fix: [M3-8422] - Linode IPv6 rDNS typo Sep 16, 2024
Copy link

github-actions bot commented Sep 16, 2024

Coverage Report:
Base Coverage: 86.7%
Current Coverage: 86.7%

@@ -46,6 +46,7 @@ export const LinkButton = (props: Props) => {
disabled={isDisabled}
onClick={onClick}
style={style}
tabIndex={0}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are buttons not already focusable? 🤔

@@ -169,21 +170,12 @@ const RangeRDNSCell = (props: {
}

return (
<button
<LinkButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to me. According to the tech docs, it used to look like a "link button" anyway 🔗

@hana-akamai hana-akamai added the Add'tl Approval Needed Waiting on another approval! label Sep 17, 2024
@hana-akamai hana-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Sep 17, 2024
@bnussman-akamai bnussman-akamai merged commit 1a3b0f2 into linode:develop Sep 18, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Bug Fixes for regressions or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants