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

Minor ui improvements - Press8-24 #627

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/OnboardingSPA/components/AdminBar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { __ } from '@wordpress/i18n';
import { Icon, wordpress } from '@wordpress/icons';
import { Dashicon } from '@wordpress/components';
import { useSelect } from '@wordpress/data';
import { store as nfdOnboardingStore } from '../../../OnboardingSPA/store';

Expand All @@ -18,7 +18,7 @@ const AdminBar = () => {
return (
<div className="nfd-onboarding-header__admin-bar">
<div className="nfd-onboarding-header__admin-bar__wplogo">
<Icon icon={ wordpress } />
<Dashicon icon="wordpress" />
<span>{ __( 'WordPress', 'wp-module-onboarding' ) }</span>
</div>
<div className="nfd-onboarding-header__admin-bar__profile">
Expand Down
30 changes: 14 additions & 16 deletions src/OnboardingSPA/components/AdminBar/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,45 @@ $light-grey : #a0a5aa;
background-color: var(--nfd-onboarding-admin-bar-background);
width: 100%;
color: var(--nfd-onboarding-admin-bar-color);
font-size: 13px;
font-weight: 400;
margin: 0;
padding: 5px;
padding: 5px 7px;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;

&__wplogo {
color: var(--nfd-onboarding-white);
display: flex;
font-size: 16px;
font-weight: 510;
align-items: center;

svg {
color: $light-grey;
fill: $light-grey;
}

span {
margin-left: 15px;
margin-left: 7px;

&:first-of-type {
color: $light-grey;
margin-left: 0;
}
}
}

&__profile {
display: flex;
align-items: center;
margin-right: 2.5px;

&__greeting {
color: var(--nfd-onboarding-white);
font-size: 16px;
font-weight: 510;
margin-right: 5px;
margin-right: 6px;
}

&__avatar {
height: 20px;
width: 20px;
height: 16px;
width: 16px;
display: inline-block;

img {
border: 1px solid #8c8f94;
width: 100%;
height: 100%;
object-fit: contain;
Expand Down
3 changes: 2 additions & 1 deletion src/OnboardingSPA/components/StartOptions/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
color: var(--nfd-onboarding-primary) !important;
font-weight: 510;
text-align: center;
font-size: 14px;
text-wrap: balance;
font-size: 13.5px;
margin: 5px;

&--large {
Expand Down
2 changes: 1 addition & 1 deletion src/OnboardingSPA/styles/_branding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ body {
--nfd-onboarding-hover: #c3c4c7;
--nfd-onboarding-secondary: #fff;
--nfd-onboarding-secondary-rgb: 255, 255, 255;
--nfd-onboarding-admin-bar-color: #c3c4c7;
--nfd-onboarding-admin-bar-color: #f0f0f1;
--nfd-onboarding-shimmer-color: 0, 0, 0;
--nfd-onboarding-card-background: #fff;
--nfd-onboarding-admin-bar-background: #1d2327;
Expand Down
Loading