-
Notifications
You must be signed in to change notification settings - Fork 3
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
[VK] Updated User-details component with some essential style and classes #585
base: main
Are you sure you want to change the base?
Conversation
} | ||
&__last-name { | ||
padding-right: 10px; | ||
padding-left: 5px; //added padding left to first name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need all the comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to butt in, but could we stick to using the 8px unit spacing? :) so the equivalent would be:
padding-right: 8px padding-left: 4px
} | ||
&__first-name, | ||
&__last-name { | ||
color: #004b83; // default text color |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems superfluous given it should inherit the color from line 17?
|
||
&__logout { | ||
&:hover { | ||
color: #fff; | ||
background-color: #183642; // background-color is not coming from enhanced on hover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hover state background color is applied in enhances.scss for .c-user-details__link.
The core scss file doesn't need all of the rules, it is intended to contain just basic styling.
} | ||
|
||
display: block; | ||
font-size: $small-font-size; | ||
line-height: 1.76; // added Line-height | ||
letter-spacing: 0.14px; // added letter-spacing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about these rules being here, is this maybe some styling that you need for overriding some of your application scss?
We do have something in the SN brand context, $context--line-height-base:
&:hover, | ||
&:focus { | ||
text-decoration: underline; // text underline on hover | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you add this for a specific browser? I had thought the default browser styling for the button element was sufficient
@@ -26,6 +33,8 @@ | |||
&__content-item { | |||
padding: 0 12px; | |||
font-size: 12px; | |||
line-height: 1.76; // added Line-height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line-height: 1.76; // added Line-height | |
line-height: $context--line-height-base; |
This will require importing following scss
@import '@springernature/brand-context/springernature/scss/10-settings/colors/default';
Will follow up with Jon about spacing |
Added some font related styles.
one class added to first name span in HBS file to update style for that.