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

Refactor/2318/migrate attribute type selector #2519

Merged
merged 11 commits into from Nov 22, 2021

Conversation

shaman-apprentice
Copy link
Contributor

@shaman-apprentice shaman-apprentice commented Nov 19, 2021

  • Removed type "edges" as it was unused.
  • Marginal changes in look like menu items font-size: 15px -> font-size: 16px as it looks better to me. I think not worth any discussion or mention in changelog.

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

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

The code LGTM. There is just a tiny regression in visualizing the buttons (they are not centered properly anymore):

Now:
image
Before:
image

@shaman-apprentice
Copy link
Contributor Author

The code LGTM. There is just a tiny regression in visualizing the buttons (they are not centered properly anymore):

Now: image Before: image

Thx for the catch! Fixed with f9f2419

left: 8px;
}
&:hover {
background-color: rgb(200, 200, 200);
Copy link
Contributor

Choose a reason for hiding this comment

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

We used #c8c8c8 before, for most hovers. But this is a personal preference to use hex codes over rgb

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

</div>

<mat-menu #menu>
<div class="menu-header" mat-menu-item disabled>Set global aggregation for rloc</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Personal preference, but i think a span or any other generic text element would be cleaner than just writing the text straight into a div, since we could in theory have spans standardized across the project but not generic text in divs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The advantage of this standard isn't clear to me. Anyway, lets not spend time in something which we might do, while "just" migrating to Angular, which is already a very very huge task :P

Copy link
Contributor

Choose a reason for hiding this comment

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

Text just in a div has no semantic meaning for text, its used for layout, while span is used to style texts. If that makes more sense

}
}

.mat-menu-item {
Copy link
Contributor

Choose a reason for hiding this comment

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

.mat-menu-item is a child of .mat-menu-content and could be in the same paranthesis level as .menu-header above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

}

.mat-menu-item {
font-size: 16px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Generally id preffer pt over px, when working with fonts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generally I agree. But as we mix it up everywhere and have no concept for it so far, I don't want to invest any time into it while migrating.

shaman-apprentice and others added 3 commits November 22, 2021 12:28
…eTypeSelector.component.scss

Co-authored-by: Christian-Eberhard <42114276+Christian-Eberhard@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2021

[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2021

[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

91.9% 91.9% Coverage
0.0% 0.0% Duplication

@Hall-Ma Hall-Ma merged commit 9cab457 into main Nov 22, 2021
@Hall-Ma Hall-Ma deleted the refactor/2318/migrate-attribute-type-selector branch November 22, 2021 12:09
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

4 participants