Skip to content

added manual link to bustooltip #1160

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

Closed
wants to merge 1 commit into from
Closed

added manual link to bustooltip #1160

wants to merge 1 commit into from

Conversation

Ladzsz
Copy link
Collaborator

@Ladzsz Ladzsz commented Jun 19, 2025

Description

I have added the manual link so that users can link to thew manual provided by you. It is fully styled and can switch from english to hebrew.

screenshots

Screenshot from 2025-06-19 10-47-07

@Ladzsz Ladzsz requested a review from NoamGaash as a code owner June 19, 2025 14:47
@hasadna-devops
Copy link

Error: This repo is not allowlisted for Atlantis.

@@ -0,0 +1,259 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason for this file?

@@ -44,4 +44,16 @@
}
}
}

.manualLink {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's no need to add a new CSS class if you're using the MUI Button.

@@ -144,6 +144,14 @@ export function BusToolTip({ position, icon, children }: BusToolTipProps) {
{showJson ? t('hide_document') : t('show_document')}
</Button>

<a
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use MUI <Button> instead of <a/> to have the same style

<Button
  href="https://www.gov.il/BlobFolder/generalpage/gtfs_general_transit_feed_specifications/he/GTFS_Developer_Information_2024.11.21b.pdf"
  target="_blank"
  rel="noopener noreferrer"
  sx={i18n.language === 'he' ? { paddingLeft: 0 } : { paddingRight: 0 }}>
  {t('homepage.manual')}
</Button>

@Ladzsz Ladzsz closed this Jun 19, 2025
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.

3 participants