8000 feat(Tile): add tokens by srambach · Pull Request #6203 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

feat(Tile): add tokens#6203

Merged
mcoker merged 7 commits intopatternfly:v6from
srambach:6197-tile-tokens
Jan 12, 2024
Merged

feat(Tile): add tokens#6203
mcoker merged 7 commits intopatternfly:v6from
srambach:6197-tile-tokens

Conversation

@srambach
Copy link
Member
@srambach srambach commented Jan 9, 2024

Fixes #6197

Note: A11y checks fail for duplicate ID, which is inside the inline SVG. @mcoker @mnolting @lucia do you have other ideas/a better way to include the SVG?

@patternfly-build
Copy link
Collaborator
patternfly-build commented Jan 9, 2024

< 8000 span class="Button-content"> Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

re: the dupe id's, looks like you just need something like this on the 3 tile examples with the PF svgs

tile--id="stacked-pf-logo-[default/selected/disabled]"

@@ -1,17 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
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 remove this - isn't needed if the SVG is inline in the page. Only needed if the SVG loads as its own external asset.

</g>
</g>
</svg> No newline at end of file
<svg width="1em" height="1em" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
Copy link
Contributor

Choose a reason for hiding this comment

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

can remove this, too

Suggested change
<svg width="1em" height="1em" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<svg width="1em" height="1em" viewBox="0 0 40 40" fill="none">

@mcoker
Copy link
Contributor
mcoker commented Jan 11, 2024

Also in the other svg's we can remove a bunch of stuff:

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" width="6.65em" height="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1616.7 243.1" style="enable-background:new 0 0 1616.7 243.1;" xml:space="preserve">

Only needs to be:

<svg width="6.65em" height="1em" viewBox="0 0 1616.7 243.1" style="enable-background:new 0 0 1616.7 243.1;">

<?xml version="1.0" encoding="UTF-8"?>
<svg width="2.59em" height="1em" viewBox="0 0 140 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

Only needs to be:

<svg width="2.59em" height="1em" viewBox="0 0 140 54">

Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

A couple of nits, but LGTM! If it's easy, it would also be nice to figure out what's going on with the PF logo SVG, it's wider than it needs to be. All can be follow ups if you'd prefer!

Screenshot 2024-01-11 at 6 17 08 PM

}

&:active, // for demo purposes - will remove
&:active,
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this was left in on accident - wdyt about removing it?

display: flex;
align-items: center;
justify-content: center;
justify-content: start;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit, but you shouldn't need this


flex-direction: column;
align-items: flex-start;
justify-content: initial;
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be needed, either.

@lboehling
Copy link

lgtm! thanks sarah! mentioned on the group review call that we should consider a follow up issue for making tiles a variant of the card component.

@mcoker mcoker merged commit 19331ac into patternfly:v6 Jan 12, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.55 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0