I am trying to write a certain table on beamer, but there is a problem with the command \arrayrulecolor I cannot understand...
Here is the table in an article document class, how I want it to look like. (Some may object to my choice to use horizontal and vertical rules: but this is just a working example of the problem, my real table is hundreds of rows long, with at least a dozen columns and many, many multicolumns and multirows, and I think, and some people I discussed the table with agree, that the rules help a little bit.)
The code is as follows.
\documentclass[9pt,dvipsnames,table]{article}
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
\linespread{1.5}
\usepackage{graphicx}
%\usetheme{Frankfurt}
\usepackage{amsbsy}
\usepackage{amscd}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsthm}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{tikz-cd}
\usepackage{colortbl}
\usepackage{hhline}
\begin{document}
%\begin{frame}{Title}
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|}
\hline
Y & \cellcolor{red!15} & Y \\hhline{-{1}{>{\arrayrulecolor{red!15}}|-}{1}{>{\arrayrulecolor{black}}|-}}
Y & \multirow{-2}{*}{\cellcolor{red!15}N} & Y\\hline
\end{tabular}
\end{table}
%\end{frame}
\end{document}
But, when I try to use exactly the same code on beamer, I get the following: notice the white line in the middle column, and the absence of a black line in the last.
The code is essentially the same, but I still post it below.
\documentclass[9pt,dvipsnames,table]{beamer}
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
\linespread{1.5}
\usepackage{graphicx}
\usetheme{Frankfurt}
\usepackage{amsbsy}
\usepackage{amscd}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsthm}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{tikz-cd}
\usepackage{colortbl}
\usepackage{hhline}
\begin{document}
\begin{frame}{Title}
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|}
\hline
Y & \cellcolor{red!15} & Y \\hhline{-{1}{>{\arrayrulecolor{red!15}}|-}{1}{>{\arrayrulecolor{black}}|-}}
Y & \multirow{-2}{*}{\cellcolor{red!15}N} & Y\\hline
\end{tabular}
\end{table}
\end{frame}
\end{document}
Honestly, I have no idea of what is the problem: I tried searching online for some known bug in the interplay between beamer and \arrayrulecolor, but nothing. I tried switching the order of the packages too, to no avail... I also removed every package I could, the ones above being the absolutely necessary for my document to work, but that did not help me either.





