Search code examples
microsoft-graph-toolkit

--font-size not working as a parameter inside mgt-person-card


I have been using the css variables in the mgt-person component to great success

mgt-person {
    --font-size: 14px;
    --font-weight: 400;
}

But in the mgt-person-card the font-size property doesn't seem to affect anything? The documentation here: https://learn.microsoft.com/en-us/graph/toolkit/components/person-card seems to suggest that this should work? Or am I missing something?


mgt-person-card {
  --font-size: 1px;
  --font-weight: 400;
}

Solution

  • Thanks for bringing this to our attention, it looks like the documentation isn't correctly matching the current variables. I posted an issue on the repository, with more information here:

    https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/333

    and I will follow up with the subsequent PR soon.