Skip to content

Fix typo in class name from 'objec' to 'object' - #738

Open
sebbASF wants to merge 1 commit into
mainfrom
preview/objec-fit-cover
Open

sebbASF wants to merge 1 commit into
mainfrom
preview/objec-fit-cover

Conversation

@sebbASF

@sebbASF sebbASF commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

This affects the object-fit setting for project, podlings and sponsor logo images.
The default is fit, which causes images to be stretched to fit if their aspect ratio does not match the container, whereas cover causes clipping [1]

Preview at https://www-objec-fit-cover.staged.apache.org/

Any differences are likely to be quite subtle, but there is no point adding a non-existent class to images.
Either fix the name (as per this PR) or drop it.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/object-fit

@sebbASF
sebbASF requested review from Paul-TT and bproffitt August 26, 2026 08:12
@bproffitt

Copy link
Copy Markdown
Contributor

@Paul-TT I would like you to address this one, please.

@Paul-TT

Paul-TT commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

@sebbASF @bproffitt Thanks for noticing that. On further inspection, we don't actually don't even want those to have the style of object fit:cover. The style is being overridden by a more specific class anyway using object-fit:contain. I can remove the misspelled classes.

@sebbASF

sebbASF commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

There are 6 other instances of object-fit-cover (correctly spelled) in the file: maybe some of those should not be present as well?

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