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

fix(styles): design fixes for tool header [ci visual] #4688

Closed
wants to merge 15 commits into from

Conversation

IB002
Copy link
Contributor

@IB002 IB002 commented Jul 13, 2023

Related Issue

Relates to #3955 (comment)

Description

Updated the tool header classes to meet new requirements.
Added new class for search field input.

Screenshots

Before

Screenshot 2023-07-13 at 9 50 00 AM (2)

After
Screenshot 2023-07-13 at 9 50 10 AM (2)

@IB002 IB002 added the Horizon 2023 Horizon Design Changes in 2023 label Jul 13, 2023
@IB002 IB002 added this to the Sprint 117 milestone Jul 13, 2023
@IB002 IB002 requested a review from a team July 13, 2023 13:58
@IB002 IB002 self-assigned this Jul 13, 2023
@netlify
Copy link

netlify bot commented Jul 13, 2023

Deploy Preview for fundamental-styles ready!

Name Link
🔨 Latest commit 8a71f92
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-styles/deploys/64b8082de265170008c72299
😎 Deploy Preview https://deploy-preview-4688--fundamental-styles.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@InnaAtanasova
Copy link
Contributor

Screenshot 2023-07-14 at 11 33 15 AM

On hover the input loses border

@InnaAtanasova
Copy link
Contributor

Screenshot 2023-07-14 at 11 39 36 AM

On small screens, when the Search in the middle disappears, it should show a Search icon in the right section, just like Shellbar

@InnaAtanasova
Copy link
Contributor

Screenshot 2023-07-14 at 11 33 15 AM On hover the input loses border

also missing the focus state.

@@ -68,6 +69,9 @@ $fd-tool-header-object-status-semantic-values: (
);

.#{$block} {
// Paddings
$fd-tool__header-item-spacing: 0.5rem !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

for SCSS variables we only use -. For example: $fd-tool-header-item-spacing

@@ -96,17 +96,19 @@ <h4>Size XL (3rem)</h4>
</button>
</div>
</div>
<div class="fd-tool-header__group">
<div class="fd-tool-header__group--center">
Copy link
Contributor

Choose a reason for hiding this comment

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

You can't have a modifier class like fd-tool-header__group--center without the base class fd-tool-header__group. It should be:

fd-tool-header__group fd-tool-header__group--center

@@ -15,17 +15,20 @@ <h4 class="fd-title fd-title--h5 fd-tool-header__title">Product Name</h4>
<label class="fd-text fd-tool-header__text" for="input-1">Description (Text Element)</label>
</div>
</div>
<div class="fd-tool-header__group">
<div class="fd-tool-header__group--center">
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above comment

Comment on lines 544 to 546
&::before {
// display: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

if not needed, please remove

Comment on lines 266 to 272
--fdSelect_Text_Content_Color: var(--fdShellbar_Select_Content_Color);
--fdInputGroup_Input_Border: var(--fdShellbar_Input_Border);
--fdInputGroup_Input_Color: var(--fdShellbar_Input_Color);
--fdInputGroup_Input_Placeholder_Color: var(--fdShellbar_Input_Placeholder_Color);
--fdInputGroup_Input_Placeholder_Style: var(--fdShellbar_Input_Placeholder_Style);
--fdInputGroup_Background: none;
--fdInputGroup_Background_Color: var(--fdShellbar_Input_Background);
Copy link
Contributor

Choose a reason for hiding this comment

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

all the variables starting with --fdShellbar.... should be duplicated for Tool Header, in my opinion. They should be moved to their own files and renamed to --fdToolHeader....
This will avoid the situation where the design for ShellBar changes but for Tool Header doesn't. By using the same CSS variables you are making Tool Header dependant on ShellBar, and they shouldn't be.

@IB002 IB002 requested a review from InnaAtanasova July 19, 2023 16:14
@InnaAtanasova InnaAtanasova modified the milestones: Sprint 117, Sprint 118 Jul 25, 2023
@droshev
Copy link
Contributor

droshev commented Jul 28, 2023

we need to update tool header with the updated design and the changes will be done there => closing the PR

@droshev droshev closed this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Horizon 2023 Horizon Design Changes in 2023
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants