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

Add style classes to FormRenderer and SectionRenderer #14

Merged

Conversation

aalmiray
Copy link
Contributor

@aalmiray aalmiray commented Jul 4, 2018

Fix for #12

@@ -78,6 +78,8 @@ public void initializeParts() {
*/
@Override
public void layoutParts() {
getStyleClass().add("formsfx-form");
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks too unconventional to me. We usually do not prefix style classes with the product name. Wouldn't "form" be sufficient?

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 followed the same convention found in GroupRenderer which is formsfx-group to be consistent. If "formsfx-" is removed from this PR then GroupRenderer should be updated too 😏

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, those students .... I should have kept a closer eye on their coding. :-)

@@ -59,6 +59,9 @@ public void initializeParts() {
@Override
public void layoutParts() {
super.layoutParts();

getStyleClass().add("formsfx-section");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here: "section" only?

@dlemmermann dlemmermann merged commit 64e50d1 into dlsc-software-consulting-gmbh:master Jul 5, 2018
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.

2 participants