-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: 🐛 prevent rewrite of inset
property when border
variant was selected in sd-teaser
#362
Milestone
Comments
mariohamann
changed the title
fix: 🐛 iprevent rewrite of
fix: 🐛 prevent rewrite of Sep 1, 2023
inset
property when border
variant was selected in sd-teaser
inset
property when border
variant was selected in sd-teaser
azraefendic
moved this from 🔖 Ready
to 🏗 In progress
in Solid Design System Project Board
Sep 21, 2023
2 tasks
azraefendic
moved this from 🏗 In progress
to 👀 In review
in Solid Design System Project Board
Sep 21, 2023
azraefendic
added a commit
that referenced
this issue
Sep 22, 2023
…cted in sd-teaser (#422) ## Description: Fixed a bug in sd-teaser to prevent rewrite of inset property when changing variants and added a corresponding test for it. Closes #362 ## Definition of Reviewable: *PR notes: Irrelevant elements should be removed.* - [x] relevant tickets are linked - [x] PR is assigned to project board
github-project-automation
bot
moved this from 👀 In review
to ✅ Done
in Solid Design System Project Board
Sep 22, 2023
yoezlem
pushed a commit
that referenced
this issue
Oct 9, 2023
…cted in sd-teaser (#422) ## Description: Fixed a bug in sd-teaser to prevent rewrite of inset property when changing variants and added a corresponding test for it. Closes #362 ## Definition of Reviewable: *PR notes: Irrelevant elements should be removed.* - [x] relevant tickets are linked - [x] PR is assigned to project board
yoezlem
pushed a commit
that referenced
this issue
Oct 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As we realized in the daily today, there is a bug in the
sd-teaser
component:solid/packages/components/src/components/teaser/teaser.ts
Line 82 in 7887ebd
Currently the property
inset
is rewritten. If you change to another variant, it's stillinset
, even if you didn't change it.Instead I would propose to write something like:
const inset = this.variant === 'white border-neutral-300' || this.inset
And refer to this const from now on, instead to
this.variant
.Please write a test after it is fixed that sets a fixture
<sd-teaser variant="white border-neutral-300">...</sd-teaser>
changes the variant and checks ifinset
is still false.@azraefendic
The text was updated successfully, but these errors were encountered: