Skip to content

Fonts in button group components must be 13px #2056

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
gorkem-bwl opened this issue Apr 12, 2025 · 19 comments · Fixed by #2225
Closed

Fonts in button group components must be 13px #2056

gorkem-bwl opened this issue Apr 12, 2025 · 19 comments · Fixed by #2225
Labels
good first issue Good for newcomers

Comments

@gorkem-bwl
Copy link
Contributor

Just like the title says, the fonts here should be 13px and not 14px

Image
@gorkem-bwl gorkem-bwl added the good first issue Good for newcomers label Apr 12, 2025
@gorkem-bwl gorkem-bwl added this to the 2.1 (Ship of Theseus) milestone Apr 12, 2025
@MonishKumar-max
Copy link

@gorkem-bwl Hey can you please assign me the issue?

@gorkem-bwl
Copy link
Contributor Author

Hello @MonishKumar-max - sure I can assign it. Thank you for your interest.

Please make sure you read this before starting.

@MonishKumar-max
Copy link

@gorkem-bwl
Can you please tell me that in what file I have to make the changes?

@romeu-maleiane
Copy link

@gorkem-bwl Hey, I would like to contribute to this issue.

@gorkem-bwl
Copy link
Contributor Author

@gorkem-bwl Can you please tell me that in what file I have to make the changes?

Did you check components?

@MonishKumar-max
Copy link

MonishKumar-max commented Apr 13, 2025

@gorkem-bwl there are many components . I could not identify the right one. Could you please tell me the component name?

@Cihatata
Copy link
Collaborator

@gorkem-bwl there are many components . I could not identify the right one. Could you please tell me the component name?

https://github.com/bluewave-labs/Checkmate/blob/9e653f7f49d25c8b5e9b029101d28f63327002c9/src/Pages/Incidents/Components/OptionsHeader/index.jsx

I think you should change Options Header buttons font size @MonishKumar-max

@MonishKumar-max
Copy link

@Cihatata I have sent the issue I am facing during running npm install in discord. Nobody have replied

@Cihatata
Copy link
Collaborator

@Cihatata I have sent the issue I am facing during running npm install in discord. Nobody have replied

Sorry I am not a member of the discord channel @MonishKumar-max

@anushkasomani
Copy link

anushkasomani commented Apr 15, 2025

hello , can i be assigned on this issue. I have already familiarized myself with the project structure while working on a issue before
ETA: 1-2h

@gorkem-bwl
Copy link
Contributor Author

Thanks @anushkasomani

@gorkem-bwl
Copy link
Contributor Author

@anushkasomani have you been able to work on this ? :)

@anushkasomani
Copy link

anushkasomani commented Apr 16, 2025

@anushkasomani have you been able to work on this ? :)

hello , yeah the button is imported from material ui components and currently its set to --env-var-font-size-medium-plus: 14px; and i need to change it to --env-var-font-size-medium: 13px; ....is it okay if I mention the styling like this

<Button
						variant="group"
						filled={(dateRange === "hour").toString()}
						onClick={() => setDateRange("hour")}
						style={{ fontSize: "var(--env-var-font-size-medium)" }} 
					>

@Br0wnHammer
Copy link
Member

@anushkasomani have you been able to work on this ? :)

hello , yeah the button is imported from material ui components and currently its set to --env-var-font-size-medium-plus: 14px; and i need to change it to --env-var-font-size-medium: 13px; ....is it okay if I mention the styling like this

<Button
						variant="group"
						filled={(dateRange === "hour").toString()}
						onClick={() => setDateRange("hour")}
						style={{ fontSize: "var(--env-var-font-size-medium)" }} 
					>

Hey @anushkasomani, we are using predefined designs on the MUI Components defined in the globalTheme.js file.
Simply use fontSize: 13px in the style props and we should be good to go.

@ajhollid
Copy link
Collaborator

@Br0wnHammer @anushkasomani there should be no overriding of font sizes on a page specific basis.

If the button font size is incorrect then it should be addressed at the theme level. We should not have one page with buttons having font size 13 and one page where they have font size 14.

@gorkem-bwl the base font for the entire application is meant to be 13px, correct? If so, then we should address the incorrect base font size set in the theme:

typography: {
	fontFamily: fontFamilyPrimary,
	fontSize: 14,
	h1: {
		fontSize: typographyLevels.xl,
		color: palette.primary.contrastText,
		fontWeight: 500,
	},
   ....
}

This will resolve most font size issues.

@anushkasomani
Copy link

@Br0wnHammer @anushkasomani there should be no overriding of font sizes on a page specific basis.

If the button font size is incorrect then it should be addressed at the theme level. We should not have one page with buttons having font size 13 and one page where they have font size 14.

@gorkem-bwl the base font for the entire application is meant to be 13px, correct? If so, then we should address the incorrect base font size set in the theme:

typography: {
	fontFamily: fontFamilyPrimary,
	fontSize: 14,
	h1: {
		fontSize: typographyLevels.xl,
		color: palette.primary.contrastText,
		fontWeight: 500,
	},
   ....
}

This will resolve most font size issues.

Alright, I thought we need to change the button font size for this page only.

@gorkem-bwl
Copy link
Contributor Author

@anushkasomani hey hope all is good. How's everything with this PR? :)

@Trained-Monkey
Copy link

@gorkem-bwl hey, may I have a go with this issue.

@gorkem-bwl
Copy link
Contributor Author

@gorkem-bwl hey, may I have a go with this issue.

Sure go ahead. When do you think you can send a pr, as we are about to make a release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
8 participants