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

IBX-1608: Added possibility to add field by click #124

Merged
merged 3 commits into from
Dec 22, 2021
Merged

Conversation

dew326
Copy link
Contributor

@dew326 dew326 commented Dec 20, 2021

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-1608
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • [x ] Ready for Code Review

@dew326 dew326 self-assigned this Dec 20, 2021
@dew326 dew326 changed the title Drop after click IBX-1608: Added possibility to add field by click Dec 20, 2021
Copy link
Contributor

@tischsoic tischsoic left a comment

Choose a reason for hiding this comment

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

Requesting changes because of passing argument to addField(), which does not take parameters.

@@ -60,6 +60,11 @@
}
}

&--active-field-definitions-group {
border: calculateRem(1px) solid $ibexa-color-info;
border-radius: $ibexa-border-radius;
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Shouldn't border-radius be defined directly on element? That border does not add to element width?

);

if (targetContainer) {
addField(event.currentTarget);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
addField(event.currentTarget);
addField();

'.ibexa-collapse--field-definitions-group.ibexa-collapse--active-field-definitions-group .ibexa-content-type-edit__field-definition-drop-zone'
);

if (targetContainer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: probably we can add this check at the beginning and then proceed with preparing data for addField.

@dew326 dew326 requested a review from tischsoic December 21, 2021 13:20
@dew326 dew326 merged commit e02c576 into main Dec 22, 2021
@dew326 dew326 deleted the drop-after-click branch December 22, 2021 07:23
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.

4 participants