Let $A$ be a connected subspace of $X$ and suppose $A\subseteq Y\subseteq\overline{A}$. Prove that $Y$ is connected.
My attempt: Suppose that $Y$ is not connected. Then $Y=U_1\cup U_2$ where $U_1$ and $U_2$ are non-empty, disjoint open sets in $X$. Now WLOG what if $A$ sits entirely in $U_1$? This cannot happen because $Y\subseteq\overline{A}$, so for every $y\in Y$, every open set containing $y$ intersects $A$. So in particular, $U_1$ and $U_2$ intersect $A$, and $(A\cap U_1)\cap (A\cap U_2)=\varnothing$ with $A=(A\cap U_1)\cup (A\cap U_2)$. But $(A\cap U_1)$ and $(A\cap U_2)$ are also both non-empty and open. So this contradicts our hypothesis that $A$ is compact.
Does anyone see a problem with my argument?
They should be open in $Y$ since you cannot assume that $Y$ is open in $X$.
If $U_1$ doesn't intersect $A$, there must be a $y$ in $(Y-A)\cap U_1$ and then $U_1$ intersects $A$ since $y\in\partial A$. Similarly for $U_2$. So both intersect $A$. I think that's your reasoning here.
Open in $A$ :-)
Connected ;-)