pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.71k stars 824 forks source link

Add Color variation to choice options #651

Closed TekExpo closed 1 year ago

TekExpo commented 1 year ago
Q A
Bug fix? no - yes?
New sample? no - yes?
Related issues? fixes #X, partially #Y, mentioned in #585

What's in this Pull Request?

Added option to specify color option. Using the CSS class custom color can be assigned to choice options

Guidance

You can delete this section when you are submitting the pull request.

Thanks for your contribution! Sharing is caring.

tecchan1107 commented 1 year ago

Thanks for the sample! And sorry for the delay. I have merged them!

I also made a modification to add your sample as a new multi-choice-links-advanced.json when merging, as I thought it would be better to keep the original sample.

Once again, thank you for the great sample!

tecchan1107 commented 1 year ago

I am sorry. I forgot to write something.

When merging, I changed the separator from : to { and }. The reason for this is that sometimes the background and text colors could not be changed properly because the URL also had a :.

Also, if you are interested, please register for the following program. When you register, you will get a digital badge! M365 Platform & Power Platform Community Recognition Program

※Even if you register, it will not be distributed immediately. It will take some time before it is distributed.

PopWarner commented 1 year ago

@TekExpo Thank you for the contribution! 🫶🏻🧡💜

We wanted to let you know that your contribution is eligible for a Credly badge from our Community Recognition program. You can learn more and register for the program at https://aka.ms/community/recognition

We hope you sign up, and please don't hesitate to let us know if you have any questions. 🤗

TekExpo commented 1 year ago

Thank you!!

TekExpo commented 1 year ago

@PopWarner : I have submitted the registration form.

MoeIcI commented 1 year ago

Hey @TekExpo and @tecchan1107 ,

I'm really happy that my idea and solution made it into the sample gallery!

Good job!

MoeIcI commented 1 year ago

@PopWarner Is my contribution eligible too? I actually provided the solution in the issue (https://github.com/pnp/List-Formatting/issues/585). I was just missing the merge request.