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

make icons look better #461

Merged
merged 3 commits into from
Feb 19, 2018
Merged

make icons look better #461

merged 3 commits into from
Feb 19, 2018

Conversation

manolo
Copy link
Member

@manolo manolo commented Feb 16, 2018

Jira: BFF-634


This change is Reviewable

@manolo
Copy link
Member Author

manolo commented Feb 16, 2018

ping @jouni why do we need to override styles in lumo, shouldn't 'vaadin:' icons work out-of-the-box ?

@jouni
Copy link
Member

jouni commented Feb 18, 2018

I would rather have them work out of the box. I have a fix pending for vaadin-button to use margin instead of padding for the icons, which also works if there’s a global box-sizing: border-box; CSS reset.

@jouni
Copy link
Member

jouni commented Feb 18, 2018

I committed fixes for vaadin-button, vaadin-text-field and vaadin-tabs that should fix the issue. Can you try the master versions?

@manolo
Copy link
Member Author

manolo commented Feb 19, 2018

@jouni those fixes work. Thanks

We still need to merge this PR since it does a couple of additional things like setting correctly the icon attribute because the property is not reflected to the attribute, and improvement on how to show/hide the delivered icon.

Also we need to wait for those fixes until there is a new release of the elements and vaadin platform including them.


Review status: 0 of 4 files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@alexberazouski
Copy link

Reviewed 2 of 4 files at r1, 1 of 1 files at r2.
Review status: 3 of 4 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@alexberazouski
Copy link

Review status: 3 of 4 files reviewed at latest revision, 1 unresolved discussion.


src/main/webapp/frontend/src/views/storefront/order-status-badge.html, line 81 at r2 (raw file):

      _onStatusChanged(current) {
        this.status = current && current.toLowerCase();

Am I right that this method will be called twice each time status is changed?


Comments from Reviewable

@manolo
Copy link
Member Author

manolo commented Feb 19, 2018

Review status: 3 of 4 files reviewed at latest revision, 1 unresolved discussion.


src/main/webapp/frontend/src/views/storefront/order-status-badge.html, line 81 at r2 (raw file):

Previously, alexberazouski wrote…

Am I right that this method will be called twice each time status is changed?

Only in the case that status.toLowerCase != status like it was previously as you can see in the removed code line this.status = lowercase . Anyways it's not an issue that this method is called twice.


Comments from Reviewable

@alexberazouski
Copy link

:lgtm:


Reviewed 1 of 4 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@alexberazouski alexberazouski merged commit 570bde9 into master Feb 19, 2018
@alexberazouski alexberazouski deleted the fix/634-icons-are-uggly branch February 19, 2018 16:57
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.

None yet

3 participants