Skip to content

Comments

Fix control button basic functionality with upcoming footer tweaks#2192

Closed
marcustyphoon wants to merge 4 commits intonew-xkit:masterfrom
marcustyphoon:updated-footer-basic-fixes
Closed

Fix control button basic functionality with upcoming footer tweaks#2192
marcustyphoon wants to merge 4 commits intonew-xkit:masterfrom
marcustyphoon:updated-footer-basic-fixes

Conversation

@marcustyphoon
Copy link

Upcoming tweaks to the post footer may result in our "find the edit button" code to determine whether a post is editable breaking, and may not have any CSS class on some footer button elements that we currently try to copy classes from.

This preserves the basic functionality of adding our own control buttons correctly if these tweaks occur (though it does not fix any layout breakage; we could of course do so in the future).

Specifically, this detects whether a post is editable in react mode using our react post_props utility, and makes sure we don't add the css class "undefined" when we don't detect a css class to copy.

These are xkit.js changes, which for this currently undeployed 7.10 branch are all that is needed. Deploying this to the live 7.9.2 branch, if I recall correctly, is an xkit patches change, so we will need to PR a change targeting that branch which copy-pastes xkit patches 7.4.24 from this. I think. Probably.

The maintenence state of this codebase is fine.

@marcustyphoon
Copy link
Author

I no longer see the code this was intended to address in the Tumblr frontend, so I guess it's not upcoming after all.

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.

1 participant