Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add segment switch to the header of a documentation site#1291

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
alinashklyar merged 7 commits intomasterfromsegment-switch
Apr 28, 2025

Conversation

@alinashklyar
Copy link
Contributor

No description provided.

@codefresh-git-integration

@codefresh-git-integration

@codefresh-git-integration

@codefresh-git-integration

.gitignore Outdated
.sass-cache/
.jekyll-metadata
.jekyll-metadata
.qodo/
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't recognize this extension.
Can you please provide more details about it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

it's kind of AI assistant, like copilot. it randomly appeared in my webstorm and I put it into gitignore

"no-descending-specificity": null,
"no-duplicate-selectors": true,
"number-leading-zero": "never",
"order/properties-order": [
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure how linter works in the repo - let's have a sync on this change.

Copy link
ContributorAuthor

@alinashklyaralinashklyarApr 25, 2025
edited
Loading

Choose a reason for hiding this comment

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

If any local changes don't match with linter rules, css is not compiled. Everytime I change anything in css, I need to spend extra minutes to manually align all properties accordingly to this rules and it became really annoying. I don't see any necessity in these rules, I think they are just wasting time


<divclass="divider-vertical mt-1"></div>

<divclass="custom-select">
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure we add all accessibility attributes to this select component.

alinashklyar reacted with thumbs up emoji
height:32px;
width:1px;
margin:016px;
background-color:#3f4255;// Adjust the color as needed
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's also connect it to a scss variable

alinashklyar reacted with thumbs up emoji
<divclass="divider-vertical mt-1"></div>

<divclass="custom-select">
<divclass="select-display"onclick="toggleSegmentDropdown()">GitOps Cloud</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure this component looks as expected in Safari and Firefox.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

yes, it looks fine in both of them

olegt-codefresh reacted with thumbs up emoji
<divclass="custom-select">
<divclass="select-display"onclick="toggleSegmentDropdown()">GitOps Cloud</div>
<ulclass="options">
<liclass="option selected"onclick="selectSegmentOption(this, 'gitops')">GitOps Cloud</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

If this option selected - do we needonclick event on this option?

Copy link
Contributor

Choose a reason for hiding this comment

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

(Can we setpointer-events: none for selected item?)

alinashklyar reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

good point, thank you

</div>
</a>
<divclass="divider-vertical mt-1"></div>
<divclass="custom-select">
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 the comments above.

<script>
window.toggleSegmentDropdown=function(){
constselect=document.querySelector('.custom-select');
console.log(select)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove console.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

sorry, I didn't notice it..

position:relative;
width:180px;
height:auto;
font-family:Arial,sans-serif;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we overriding docs page default font?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

oh, I will remove that. I trusted Copilot a bit too much

$grid-columns:12;
$grid-gutter-width-base:28px;

//ant inputs
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add more specific comment like 'ANT design system:'

alinashklyar reacted with thumbs up emoji
@codefresh-git-integration

@codefresh-git-integration

@codefresh-git-integration

@alinashklyaralinashklyar merged commit3fbf59f intomasterApr 28, 2025
1 check passed
@NimRegevNimRegev deleted the segment-switch branchMay 12, 2025 09:18
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@olegt-codefresholegt-codefresholegt-codefresh approved these changes

@NimRegevNimRegevAwaiting requested review from NimRegev

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@alinashklyar@olegt-codefresh

[8]ページ先頭

©2009-2025 Movatter.jp