I want a colored box around enumerate labels. My actual code is this:
\documentclass{article}
\usepackage{tikz}
\usepackage{enumitem}
\newcommand{\fff}[1]{\tikz
\node[
inner sep=1.5pt,
draw=blue,
fill=blue,
text=black,
rounded corners=2pt]{#1};}
\begin{document}
\begin{enumerate}[label=\fff{\Alph*.}]
\item text
\end{enumerate}
\fff{A.}
\end{document}
As you can see this code does not work. However the \fff
command works if not used inside the label specification.
Does anyone knows what is wrong with this code?