Closed jpradocueva closed 4 months ago
See content in PR https://github.com/OpenMobileAlliance/oma-knowledge-base/pull/53
@jpradocueva
If single columns are indented to the right inside of a multicolumn, the rendering of, e.g., background color, doesn't work.
When using ui
object to insert classes to e.g. wrapper
, wrapper
also needs to be indented.
How to add padding between micro-cards?
We can have two solutions here, one permanent and one that the user needs to input:
mt-number
and mb-number
to the component itself, more specifically add these values to the wrapper
inside sh-micro-card.ts
where the number represents the margin value. With these, we need to be careful as every instance of sh-micro-card
will have those values, and when we want to concatenate more sh-micro-card
components, these values add up and can produce more spacing than we wantmt-number
and mb-number
to theui.wrapper
object with desired number values (e.g. mt-3 mb-3
). This needs to be inputted inside of md, as we do it anyway when we need to add additional stylesHow to reproduce the news/articles section
I saw that you have created a request for a new constructor called ShListCards
. But, I think that we can create that list with ShMultiColumn
with some minor additions such as adding a title
and subtitle
prop. ShCard
also needs some improvements that you have listed in the new request, and I`ll see to add them.
In which folder I should add the images?
Images can be added to public/images
folder. You can just opt out to create additional folders inside, but you'll need to provide a full path to an image as well as the name and extension of the image.
ShCard
is not working correctly inside aShMultiColumn
constructor. When deleting some text content from the first card, the rest of the cards are updated
To avoid bad rendering, the best practice when using nested components(constructors) is to:
:::
, and you can add as much of
:::
as you want, but the minimum is twoI have made these changes to the same index file, so for full representation, check my commit.
Issues when building this page:
card
constructor. When deleting some text content from the firstcard
, the rest of the cards are updated See problems in PR #