Skip to content
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

[feat] Card slots #8233

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a63e7e6
vertical orientation works alright, horizontal has issues
jouni Nov 27, 2024
09c71c8
remove commented code
jouni Nov 27, 2024
2898c52
Update card.html
jouni Nov 27, 2024
e92f5dd
Update card.html
jouni Nov 27, 2024
34afedc
keep media as the first child
jouni Dec 2, 2024
8edd4e3
experiment with custom properties (no horizontal version)
jouni Dec 2, 2024
4d3f26a
robust prototype with slots and shadow parts
jouni Dec 4, 2024
899fa65
Merge branch 'main' into card-proto
jouni Dec 5, 2024
789bf99
improve dev playground
jouni Dec 10, 2024
ae35afe
switch cover-media <-> stretch-media variant names
jouni Dec 13, 2024
54ef765
fix material theme
jouni Dec 13, 2024
7cc9f34
fix: run mutation observer once when connected
jouni Dec 13, 2024
e986226
fix a couple of sonarcloud issues
jouni Dec 16, 2024
6561311
update visual test for Lumo
jouni Dec 17, 2024
d64f975
remove duplicate visual test
jouni Dec 17, 2024
559d68a
update visual test for Material
jouni Dec 17, 2024
14c0248
use Lumo-specific component imports in Lumo tests
jouni Dec 17, 2024
a56433e
fix CSS lint error
jouni Dec 17, 2024
ca48b34
remove TODOs
jouni Dec 17, 2024
596edd5
First draft of JSDoc
jouni Dec 18, 2024
ba98bec
prefix internal custom props with underscore
jouni Dec 18, 2024
1ac1a93
refactor: use slotchange listener instead of MutationObserver
jouni Dec 18, 2024
b603031
test: update screenshots
web-padawan Dec 19, 2024
36a1cc7
test: import badge-global in card visual test
web-padawan Dec 19, 2024
e9bad8b
test: remove Lumo custom CSS properties from Material test
web-padawan Dec 19, 2024
972e502
test: cleanup card visual test, use local image (#8369)
web-padawan Dec 19, 2024
73a11a4
fix: restore styles for hidden attribute
web-padawan Dec 19, 2024
9a7c9dc
docs: add protected JSDoc annotations
web-padawan Dec 19, 2024
dc8d1d2
refactor: add box-sizing border-box to card styles
web-padawan Dec 20, 2024
50e0fa0
test: update visual test screenshots
web-padawan Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link
Contributor

@knoobie knoobie Dec 20, 2024

Choose a reason for hiding this comment

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

The rounded right side corners of the image look kinda off in this material version, or?

The same goes for another image below.. or is this intended in material design? The lumo versions looks way better in this regard 😅

Copy link
Member

Choose a reason for hiding this comment

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

Good catch, thanks. Yes, we need to fix the Material version.

Copy link
Member

Choose a reason for hiding this comment

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

Tested in latest Chrome and it seems to look correctly, maybe it's related to outdated Chrome version used by Material tests as it differs from Lumo setup (some CSS properties could be not supported yet in Chrome 88).

Copy link
Member

Choose a reason for hiding this comment

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

UPD: my assumption above was correct. Created #8383 to update Chrome version.
.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.