In below simple graph, if an opacity is specified in the legendmarkers, the plot marker shifted a little bit, can someone please shed some lights?
Plot[{Sin[x], Cos[x]}, {x, 0, Pi}, PlotLegends -> {Placed[ PointLegend[{Directive[Red, Opacity[0.8]], Blue}, TextCell[#, TextAlignment -> Left] & /@ {"ABC", "XYZ"}, LegendMarkers -> {{\[FilledSquare], 22}, {\[FilledSquare], 22}}], {0.5, 0.5}]}]
Plot[{Sin[x], Cos[x]}, {x, 0, Pi},
PlotLegends -> {Placed[PointLegend[{Directive[Red, Opacity[0.8]], Blue},
TextCell[#, TextAlignment -> Left] & /@ {"ABC", "XYZ"},
LegendMarkers -> {{\[FilledSquare], 22}, {\[FilledSquare], 22}}], {0.5, 0.5}]}]