I'm trying to use tcolorbox to highlight list items in an enumerate environment with the label inside the box and aligned with any list item labels that occur previously. However, I can't get the enumeration labels to be inside the tcolorbox.
Here is the code showing the labels outside of the tcolorbox.
Any help would be greatly appreciated.
\documentclass{article}
\usepackage{tcolorbox, enumitem}
\newtcolorbox{mybox}[1]{
halign title=center,
squeezed title*={\rmfamily\textsc{\textbf{#1}}},
arc=0mm,%
colbacktitle=blue,%
colback=blue!5!white,%
colframe=blue,%
left=0mm,%
right=0mm,%
top=0.5mm,%
bottom=0.5mm,%0.3mm
boxsep=0mm,%
boxrule=0.1mm,%
nobeforeafter,%
width=\linewidth,%
box align=center,%
}
\begin{document}
\section{Testing}
\begin{enumerate}
\item entry 1
\item entry 2
%Blank item, and tcolorbox shifted to the left with enumitem widths
\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\begin{mybox}{Title}
% enumerations inside box
\item box entry
\item box entry 2
\end{mybox}
%continued list outside of the box
\item final entry
\end{enumerate}
\end{document}