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

NEW Implementing edit link on inline blocks and updating styling #301

Merged

Conversation

ScopeyNZ
Copy link
Contributor

@ScopeyNZ ScopeyNZ commented Aug 6, 2018

Each block is now an anchor tag that links to the GridFieldDetailForm for the element. I updated the hover styling in this PR too.


if (!ID) {
return null;
}

return (
<div className="element-editor__element">
<a className="element-editor__element" href={link} title={linkTitle}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I don't know if I like this. Can you nest the anchor inside the div instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will have to remove all padding from the div and add it to the anchor - which is what that class did - so it made sense to move the class to the anchor tag, then the div was kind of pointless. Not really sure what a better solution to that would be?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I'll get over it

@robbieaverill robbieaverill merged commit 1d4f6c9 into silverstripe:master Aug 6, 2018
@robbieaverill robbieaverill deleted the pulls/master/edit-link branch August 6, 2018 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants