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

Unknown prop buttonRole on <span> tag #9841

Closed
jryans opened this issue May 24, 2019 · 6 comments · Fixed by matrix-org/matrix-react-sdk#3033
Closed

Unknown prop buttonRole on <span> tag #9841

jryans opened this issue May 24, 2019 · 6 comments · Fixed by matrix-org/matrix-react-sdk#3033
Assignees
Labels
A11y P2 S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Release-Blocker

Comments

@jryans
Copy link
Collaborator

jryans commented May 24, 2019

Warning: Unknown prop `buttonRole` on <span> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in span (created by AccessibleButton)
    in AccessibleButton (created by BaseAvatar)
    in BaseAvatar (created by MemberAvatar)
    in MemberAvatar (created by EventTile)
    in div (created by EventTile)
    in div (created by EventTile)
    in EventTile (created by withMatrixClient<EventTile>)
    in withMatrixClient<EventTile> (created by MessagePanel)
    in li (created by MessagePanel)
    in ol (created by ScrollPanel)
    in div (created by ScrollPanel)
    in div (created by AutoHideScrollbar)
    in div (created by AutoHideScrollbar)
    in AutoHideScrollbar (created by ScrollPanel)
    in ScrollPanel (created by MessagePanel)
    in MessagePanel (created by TimelinePanel)
    in TimelinePanel (created by RoomView)
    in div (created by RoomView)
    in div (created by RoomView)
    in MainSplit (created by RoomView)
    in main (created by RoomView)
    in RoomView (created by LoggedInView)
    in div (created by LoggedInView)
    in DragDropContext (created by LoggedInView)
    in div (created by LoggedInView)
    in LoggedInView (created by MatrixChat)
    in MatrixChat

Added by matrix-org/matrix-react-sdk#3019. @turt2live, maybe something was meant to convert buttonRole to the value of role on the button?

@jryans jryans added T-Defect I18n defect S-Minor Impairs non-critical functionality or suitable workarounds exist P2 labels May 24, 2019
@turt2live
Copy link
Member

Short version: everything is awful

Long version: all of this needs to be redone anyways, so will take a look then.

@jryans
Copy link
Collaborator Author

jryans commented May 24, 2019

Should I delete the buttonRole lines (which I assume aren't having an effect currently) to avoid the warning for now, if it's going to be a while before we return to this?

@turt2live
Copy link
Member

it'll be at least 1 release cycle before I poke it (~2 weeks). I'd sooner recommend rolling back matrix-org/matrix-react-sdk#3019 as a whole. I can cherry pick the parts I need when I get back to it.

Worth noting this affects the RC too.

@jryans
Copy link
Collaborator Author

jryans commented May 24, 2019

Ah okay, we can use this as a reminder to roll that back then (not sure I'll get to it today).

@jryans
Copy link
Collaborator Author

jryans commented May 28, 2019

Marking release blocker so we remember to also revert in the release branch.

@jryans
Copy link
Collaborator Author

jryans commented May 29, 2019

matrix-org/matrix-react-sdk#3036 is the release branch PR.

@jryans jryans added A11y and removed I18n labels Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11y P2 S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Release-Blocker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants